From 18e63a362adeb4cd2c94efce72145b6ee976c29b Mon Sep 17 00:00:00 2001 From: thecharlesblake Date: Wed, 14 Feb 2018 16:57:32 +0000 Subject: Update benchmark resources path & add no auto flag --- benchmark.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'benchmark.py') diff --git a/benchmark.py b/benchmark.py index 10f45dd..db73c43 100644 --- a/benchmark.py +++ b/benchmark.py @@ -38,11 +38,16 @@ if (len(sys.argv) >= 2 flag = "-no-reduced-state" print("Running in no-reduced-state mode...") +if (len(sys.argv) >= 2 + and (sys.argv[1] == "--no-auto-foundations" or sys.argv[1] == "-af")): + flag = "-no-auto-foundations" + print("Running in no-auto-foundations mode...") + class SolitaireRulesGen(metaclass=ABCMeta): def __init__(self, name): self.name = name - self.baseJson = json.load(open('resources/' + name + '.json')) + self.baseJson = json.load(open('resources/rules-presets' + name + '.json')) def genRules(self, level): self.alterFieldsToChange(level) -- cgit v1.2.1 From d94650d5ec02b5efb4ee47cfa86501c21605ad49 Mon Sep 17 00:00:00 2001 From: thecharlesblake Date: Thu, 15 Feb 2018 12:39:50 +0000 Subject: Fix benchmark path bug --- benchmark.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'benchmark.py') diff --git a/benchmark.py b/benchmark.py index db73c43..efdddac 100644 --- a/benchmark.py +++ b/benchmark.py @@ -47,7 +47,7 @@ class SolitaireRulesGen(metaclass=ABCMeta): def __init__(self, name): self.name = name - self.baseJson = json.load(open('resources/rules-presets' + name + '.json')) + self.baseJson = json.load(open('resources/rules-presets/' + name + '.json')) def genRules(self, level): self.alterFieldsToChange(level) -- cgit v1.2.1