![]() ![]() 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. Now, the program will play all configurations on the given graph. 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. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |