diff --git a/Books/2moves_v1.epd.json b/Books/2moves_v1.epd.json new file mode 100644 index 0000000..b7f3371 --- /dev/null +++ b/Books/2moves_v1.epd.json @@ -0,0 +1,4 @@ +{ + "sha" : "7bec98239836f219dc41944a768c0506abed950aaec48da69a0782643e90f237", + "source" : "https://raw.githubusercontent.com/AndyGrant/openbench-books/master/2moves_v1.epd.zip" +} diff --git a/Books/2moves_v1.epd.zip b/Books/2moves_v1.epd.zip deleted file mode 100644 index 24bf97a..0000000 Binary files a/Books/2moves_v1.epd.zip and /dev/null differ diff --git a/Books/3moves_FRC.epd.json b/Books/3moves_FRC.epd.json new file mode 100644 index 0000000..a416412 --- /dev/null +++ b/Books/3moves_FRC.epd.json @@ -0,0 +1,4 @@ +{ + "sha" : "6bf81e1ada6a3306bbc8356f7bca1e2984a2828d658799992d5443b7179c934d", + "source" : "https://raw.githubusercontent.com/AndyGrant/openbench-books/master/3moves_FRC.epd.zip" +} diff --git a/Books/3moves_FRC.epd.zip b/Books/3moves_FRC.epd.zip deleted file mode 100644 index a41746a..0000000 Binary files a/Books/3moves_FRC.epd.zip and /dev/null differ diff --git a/Books/4moves_noob.epd.json b/Books/4moves_noob.epd.json new file mode 100644 index 0000000..fe1985d --- /dev/null +++ b/Books/4moves_noob.epd.json @@ -0,0 +1,4 @@ +{ + "sha" : "4be746a91e3f8af0c9344b1e72d611e9fcfe486843867a55760970a4896f284d", + "source" : "https://raw.githubusercontent.com/AndyGrant/openbench-books/master/4moves_noob.epd.zip" +} diff --git a/Books/4moves_noob.epd.zip b/Books/4moves_noob.epd.zip deleted file mode 100644 index 56cd209..0000000 Binary files a/Books/4moves_noob.epd.zip and /dev/null differ diff --git a/Books/8moves_v3.epd.json b/Books/8moves_v3.epd.json new file mode 100644 index 0000000..2088fcf --- /dev/null +++ b/Books/8moves_v3.epd.json @@ -0,0 +1,4 @@ +{ + "sha" : "1f055af431656f09ee6a09d2448e0b876125f78bb7b404fca2031c403a1541e5", + "source" : "https://raw.githubusercontent.com/AndyGrant/openbench-books/master/8moves_v3.epd.zip" +} diff --git a/Books/8moves_v3.epd.zip b/Books/8moves_v3.epd.zip deleted file mode 100644 index 517feda..0000000 Binary files a/Books/8moves_v3.epd.zip and /dev/null differ diff --git a/Books/DFRC.epd.json b/Books/DFRC.epd.json new file mode 100644 index 0000000..070df45 --- /dev/null +++ b/Books/DFRC.epd.json @@ -0,0 +1,4 @@ +{ + "sha" : "648c447ef40614a44d13b78911e81470d8ddb0d3b2711c1b180e990871f5db4f", + "source" : "https://raw.githubusercontent.com/AndyGrant/openbench-books/master/DFRC.epd.zip" +} diff --git a/Books/DFRC.epd.zip b/Books/DFRC.epd.zip deleted file mode 100644 index 8afc432..0000000 Binary files a/Books/DFRC.epd.zip and /dev/null differ diff --git a/Books/Endgames.epd.json b/Books/Endgames.epd.json new file mode 100644 index 0000000..ed78af2 --- /dev/null +++ b/Books/Endgames.epd.json @@ -0,0 +1,4 @@ +{ + "sha" : "71c7477ca8c8fb097bb565794d8b5ed8754532f8fb499e9d8b1d397692302a6a", + "source" : "https://raw.githubusercontent.com/AndyGrant/openbench-books/master/Endgames.epd.zip" +} diff --git a/Books/Endgames.epd.zip b/Books/Endgames.epd.zip deleted file mode 100644 index 19cc110..0000000 Binary files a/Books/Endgames.epd.zip and /dev/null differ diff --git a/Books/Pohl.epd.json b/Books/Pohl.epd.json new file mode 100644 index 0000000..1a89c93 --- /dev/null +++ b/Books/Pohl.epd.json @@ -0,0 +1,4 @@ +{ + "sha" : "b3e64e0dab84cf451a9ac7ef031f5a2bbcf16c7e21be95298fb03cbf021f5466", + "source" : "https://raw.githubusercontent.com/AndyGrant/openbench-books/master/Pohl.epd.zip" +} diff --git a/Books/Pohl.epd.zip b/Books/Pohl.epd.zip deleted file mode 100644 index a289292..0000000 Binary files a/Books/Pohl.epd.zip and /dev/null differ diff --git a/Books/Pohl.pgn.json b/Books/Pohl.pgn.json new file mode 100644 index 0000000..08fdd58 --- /dev/null +++ b/Books/Pohl.pgn.json @@ -0,0 +1,4 @@ +{ + "sha" : "aaa7559c5d94e592fe5cca3586cb099d8fc5f13428d4ce84afc4b97811241c7e", + "source" : "https://raw.githubusercontent.com/AndyGrant/openbench-books/master/Pohl.pgn.zip" +} diff --git a/Books/Pohl.pgn.zip b/Books/Pohl.pgn.zip deleted file mode 100644 index a9e5434..0000000 Binary files a/Books/Pohl.pgn.zip and /dev/null differ diff --git a/Books/UHO_4060_v2.epd.json b/Books/UHO_4060_v2.epd.json new file mode 100644 index 0000000..24a172f --- /dev/null +++ b/Books/UHO_4060_v2.epd.json @@ -0,0 +1,4 @@ +{ + "sha" : "36f2ec751ab78def6be1307430cbe2cd2ba65ade8d2aaae8f10e3df7d0ea83e1", + "source" : "https://raw.githubusercontent.com/AndyGrant/openbench-books/master/UHO_4060_v2.epd.zip" +} diff --git a/Books/UHO_4060_v2.epd.zip b/Books/UHO_4060_v2.epd.zip deleted file mode 100644 index a0bdb16..0000000 Binary files a/Books/UHO_4060_v2.epd.zip and /dev/null differ diff --git a/Books/books.json b/Books/books.json deleted file mode 100644 index 68ede9a..0000000 --- a/Books/books.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "2moves_v1.epd" : { - "name" : "2moves_v1.epd", - "sha" : "7bec98239836f219dc41944a768c0506abed950aaec48da69a0782643e90f237", - "source" : "https://raw.githubusercontent.com/AndyGrant/OpenBench/master/Books/2moves_v1.epd.zip" - }, - - "8moves_v3.epd" : { - "name" : "8moves_v3.epd", - "sha" : "1f055af431656f09ee6a09d2448e0b876125f78bb7b404fca2031c403a1541e5", - "source" : "https://raw.githubusercontent.com/AndyGrant/OpenBench/master/Books/8moves_v3.epd.zip" - }, - - "3moves_FRC.epd" : { - "name" : "3moves_FRC.epd", - "sha" : "6bf81e1ada6a3306bbc8356f7bca1e2984a2828d658799992d5443b7179c934d", - "source" : "https://raw.githubusercontent.com/AndyGrant/OpenBench/master/Books/3moves_FRC.epd.zip" - }, - - "4moves_noob.epd" : { - "name" : "4moves_noob.epd", - "sha" : "4be746a91e3f8af0c9344b1e72d611e9fcfe486843867a55760970a4896f284d", - "source" : "https://raw.githubusercontent.com/AndyGrant/OpenBench/master/Books/4moves_noob.epd.zip" - }, - - "Pohl.epd" : { - "name" : "Pohl.epd", - "sha" : "b3e64e0dab84cf451a9ac7ef031f5a2bbcf16c7e21be95298fb03cbf021f5466", - "source" : "https://raw.githubusercontent.com/AndyGrant/OpenBench/master/Books/Pohl.epd.zip" - }, - - "Pohl.pgn" : { - "name" : "Pohl.pgn", - "sha" : "aaa7559c5d94e592fe5cca3586cb099d8fc5f13428d4ce84afc4b97811241c7e", - "source" : "https://raw.githubusercontent.com/AndyGrant/OpenBench/master/Books/Pohl.pgn.zip" - }, - - "DFRC.epd" : { - "name" : "DFRC.epd", - "sha" : "648c447ef40614a44d13b78911e81470d8ddb0d3b2711c1b180e990871f5db4f", - "source" : "https://raw.githubusercontent.com/AndyGrant/OpenBench/master/Books/DFRC.epd.zip" - }, - - "Endgames.epd" : { - "name" : "Endgames.epd", - "sha" : "71c7477ca8c8fb097bb565794d8b5ed8754532f8fb499e9d8b1d397692302a6a", - "source" : "https://raw.githubusercontent.com/AndyGrant/OpenBench/master/Books/Endgames.epd.zip" - }, - - "UHO_4060_v2.epd" : { - "name" : "UHO_4060_v2.epd", - "sha" : "36f2ec751ab78def6be1307430cbe2cd2ba65ade8d2aaae8f10e3df7d0ea83e1", - "source" : "https://raw.githubusercontent.com/AndyGrant/OpenBench/master/Books/UHO_4060_v2.epd.zip" - } -} \ No newline at end of file diff --git a/OpenBench/config.py b/OpenBench/config.py index 7f7687c..6eedf25 100644 --- a/OpenBench/config.py +++ b/OpenBench/config.py @@ -63,7 +63,7 @@ OPENBENCH_CONFIG = { }, # Take a look at Books/books.json - 'books' : load_json_config('Books', 'books.json'), + 'books' : load_folder_of_configs('Books'), # Take a look at json file in Engines/ 'engines' : load_folder_of_configs('Engines'), diff --git a/OpenBench/workloads/get_workload.py b/OpenBench/workloads/get_workload.py index 6ebaeef..6f82c7a 100644 --- a/OpenBench/workloads/get_workload.py +++ b/OpenBench/workloads/get_workload.py @@ -50,7 +50,6 @@ def get_workload(machine): machine.workload = test.id; machine.save(); result.save() return { 'workload' : workload_to_dictionary(test, result, machine) } - def select_workload(machine): # Find valid workloads, given the current distribution of workers @@ -169,7 +168,12 @@ def workload_to_dictionary(test, result, machine): 'win_adj' : test.win_adj, 'draw_adj' : test.draw_adj, 'workload_size' : test.workload_size, - 'book' : OPENBENCH_CONFIG['books'][test.book_name], + } + + workload['test']['book'] = { + 'name' : test.book_name, + 'sha' : OPENBENCH_CONFIG['books'][test.book_name]['sha'], + 'source' : OPENBENCH_CONFIG['books'][test.book_name]['source'], } workload['test']['dev'] = {