From 5c168518766037ef7129cc28febdd03afb8e11ee Mon Sep 17 00:00:00 2001 From: thecharlesblake Date: Sat, 24 Feb 2018 11:10:54 +0000 Subject: Add card just moved optimisation to game logic --- optimisation-test.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'optimisation-test.py') 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) -- cgit v1.2.1