diff options
| author | thecharlesblake | 2018-02-24 11:10:54 +0000 |
|---|---|---|
| committer | thecharlesblake | 2018-02-24 11:10:54 +0000 |
| commit | 5c168518766037ef7129cc28febdd03afb8e11ee (patch) | |
| tree | 4983a8a72065056e693b418510e64abdbdb0f2b7 /optimisation-test.py | |
| parent | Add NO_CARD_JUST_MOVED optimisation flag to CMAKE (diff) | |
| download | metasol-5c168518766037ef7129cc28febdd03afb8e11ee.tar.gz metasol-5c168518766037ef7129cc28febdd03afb8e11ee.zip | |
Add card just moved optimisation to game logic
Diffstat (limited to 'optimisation-test.py')
| -rw-r--r-- | optimisation-test.py | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/optimisation-test.py b/optimisation-test.py index 6f936ef..3703905 100644 --- a/optimisation-test.py +++ b/optimisation-test.py @@ -1,13 +1,17 @@ import sys from subprocess import run, CalledProcessError, DEVNULL, PIPE, Popen -runCount = 7500 +runCount = 1000 # Loops through each canonical solitaire -for optimisation in ["-no-reduced-state", - "-no-pile-symmetry", - "-no-auto-foundations"]: +for optimisation in [ +# "-no-reduced-state", +# "-no-pile-symmetry", +# "-no-auto-foundations", + "-no-card-just-moved" +]: + for preset in [ "simple-alpha-star", "simple-bakers-dozen", @@ -58,8 +62,8 @@ for optimisation in ["-no-reduced-state", except CalledProcessError: print("Error running " + preset + " with seed " + str(attempt) + "!") sys.exit() - except: - print("Unknown error in script") + except Exception as e: + print("Unknown error in script: ", e) sys.exit() run("pkill solvitaire", shell=True) |
