![]() ![]() Graphs are made by using the appropriate function from factory. Use the -h or -help arguments for a view of all arguments. Peg-solitaire-path(5)-colorset(3)-range.xlsx Use the -e argument to switch to a descriptive form. In addition, the file name is in a compact form by default. Time - the number of hours, minutes, and seconds the program played the game.Sections - the number of configuration sets (a group based on the graph size and the number of colors).Size - the number of vertices for the graph.Lost - the number of games determined to be not winnable.Won - the number of games determined to be winnable.Played - the number of games played (obtained from -range or Total).Total - the number of games available to play for the given graph size and the number of colors.The generated excel file will contain the statistics from the output in the form of the table below. Generating File: ps-p(5)-z(3)-r.xlsxĬonfiguration Section (1): Playing. $ python3 configuration.py -type path -size 5 -colorset 3 Here is the output when running configuration. For example, if the -colorset parameter is not specified, then internally, n = 3. Note: If a parameter is omitted, then it will be set to a default value. This will have the program simulate playing the game with the specified parameters and show possible results.įinally, similar to the result in "example - main", if the games are winnable, then the generated excel file will contain the steps on how to win. The total number of games can be referenced from the output of the -dry-run argument. Valid values are between 1 and Total (inclusive). That is, the program will build all possible arrangement of pegs based on the graph size and the number of colors chosen.īy using the -range argument, the program will play the specified subset of games. Information from its description page there is shown below. This is a file from the Wikimedia Commons. Size of this PNG preview of this SVG file: 684 × 168 pixels. Now, the program will play all configurations on the given graph. File:Peg Solitaire game board shapes.svg. py, to indicate the desired parameters, pass them as arguments as shown in the example below. This time, however, the configuration is not directly chosen.įirst, in running configuration. Suppose the same parameters are involved. py contains more graphs and their configuration. If the game is winnable, as in this case, then the resulting excel file will contain the steps on how to win. Saving to file: peg-solitaire-example-sheet-path-5-z3.xlsx ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |