diff options
| author | Charlie Blake | 2018-04-04 16:02:31 +0100 |
|---|---|---|
| committer | GitHub | 2018-04-04 16:02:31 +0100 |
| commit | 9bdacbca71f402507ba2a09929a9cadeaadcfdd0 (patch) | |
| tree | 2f6a6473993d6df448f16253950f03c9f5c5031b /optimisation-test.py | |
| parent | Merge pull request #47 from thecharlesblake/re-add-schema (diff) | |
| parent | Add legal move gen tests and refactor (diff) | |
| download | metasol-9bdacbca71f402507ba2a09929a9cadeaadcfdd0.tar.gz metasol-9bdacbca71f402507ba2a09929a9cadeaadcfdd0.zip | |
Merge pull request #48 from thecharlesblake/wider-testing
Wider testing
Diffstat (limited to 'optimisation-test.py')
| -rw-r--r-- | optimisation-test.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/optimisation-test.py b/optimisation-test.py index 3703905..36dac55 100644 --- a/optimisation-test.py +++ b/optimisation-test.py @@ -1,14 +1,14 @@ import sys from subprocess import run, CalledProcessError, DEVNULL, PIPE, Popen -runCount = 1000 +runCount = 100 # Loops through each canonical solitaire for optimisation in [ # "-no-reduced-state", -# "-no-pile-symmetry", -# "-no-auto-foundations", + "-no-pile-symmetry", + "-no-auto-foundations", "-no-card-just-moved" ]: @@ -37,7 +37,7 @@ for optimisation in [ out_str = op_p.stdout.readline() if out_str == b'Solved\n': op_res = True - elif out_str == b'No solution\n': + elif out_str == b'No Possible Solution\n': op_res = False else: raise Exception('Invalid return value!') @@ -51,7 +51,7 @@ for optimisation in [ out_str = no_op_p.stdout.readline() if out_str == b'Solved\n': no_op_res = True - elif out_str == b'No solution\n': + elif out_str == b'No Possible Solution\n': no_op_res = False else: raise Exception('Invalid return value!') |
