diff options
| author | Charlie Blake | 2018-02-24 11:12:45 +0000 |
|---|---|---|
| committer | GitHub | 2018-02-24 11:12:45 +0000 |
| commit | 2db3586f42af5174a14e8a6f693334f3f4f75e14 (patch) | |
| tree | 4983a8a72065056e693b418510e64abdbdb0f2b7 /optimisation-test.py | |
| parent | Merge pull request #40 from thecharlesblake/test-optimisations (diff) | |
| parent | Add card just moved optimisation to game logic (diff) | |
| download | metasol-2db3586f42af5174a14e8a6f693334f3f4f75e14.tar.gz metasol-2db3586f42af5174a14e8a6f693334f3f4f75e14.zip | |
Merge pull request #41 from thecharlesblake/profile-improve
Profile improve
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) |
