From 05b2be2e610a9896b0d6f852b4c7b93fd9f65539 Mon Sep 17 00:00:00 2001 From: Akita Noek Date: Fri, 21 Jun 2024 06:13:19 -0600 Subject: [PATCH] Add more autoscore test files --- .../game_dev_hex_tests_51750019.json | 49 +++++++++++++++++++ .../game_dev_hex_tests_51750020.json | 48 ++++++++++++++++++ 2 files changed, 97 insertions(+) create mode 100644 test/autoscore_test_files/game_dev_hex_tests_51750019.json create mode 100644 test/autoscore_test_files/game_dev_hex_tests_51750020.json diff --git a/test/autoscore_test_files/game_dev_hex_tests_51750019.json b/test/autoscore_test_files/game_dev_hex_tests_51750019.json new file mode 100644 index 00000000..4d424c46 --- /dev/null +++ b/test/autoscore_test_files/game_dev_hex_tests_51750019.json @@ -0,0 +1,49 @@ +{ + "game_id": 51750019, + "description": "hexahedron says This is an approach ko rather than a direct ko, so Black is NOT obligated to capture B9 before the end of the game, which would result in Black losing one point of territory. White also has no way to win this game by playing it out because White has no ko threats. If wA8, bPass, wC9, bA9, wPass, bD9, White did force black to play it out, but White had to give away an extra capture to do so, so Black still wins by 0.5.", + + "board": [ + "bW bWWb ", + " bbbbWbb ", + "bbWWWWbWW", + "WW Wb bW", + " Wb bW", + " Wb bb", + " Wbb ", + " Wb ", + " Wb " + ], + "black": [ + [ 1.0, 1.0, 1.0, 1.0, 1.0, -1.0, -1.0, 1.0, 1.0], + [ 1.0, 1.0, 1.0, 1.0, 1.0, -1.0, 1.0, 1.0, 1.0], + [ 1.0, 1.0, -1.0, -1.0, -1.0, -1.0, 1.0, 1.0, 1.0], + [-1.0, -1.0, -1.0, -1.0, -1.0, 1.0, 1.0, 1.0, 1.0], + [-1.0, -1.0, -1.0, -1.0, -1.0, 1.0, 1.0, 1.0, 1.0], + [-1.0, -1.0, -1.0, -1.0, -1.0, 1.0, 1.0, 1.0, 1.0], + [-1.0, -1.0, -1.0, -1.0, -1.0, 1.0, 1.0, 1.0, 1.0], + [-1.0, -1.0, -1.0, -1.0, -1.0, 1.0, 1.0, 1.0, 1.0], + [-1.0, -1.0, -1.0, -1.0, -1.0, 1.0, 1.0, 1.0, 1.0] + ], + "white": [ + [ 1.0, 1.0, 1.0, 1.0, 1.0, -1.0, -1.0, 1.0, 1.0], + [ 1.0, 1.0, 1.0, 1.0, 1.0, -1.0, 1.0, 1.0, 1.0], + [ 1.0, 1.0, -1.0, -1.0, -1.0, -1.0, 1.0, 1.0, 1.0], + [-1.0, -1.0, -1.0, -1.0, -1.0, 1.0, 1.0, 1.0, 1.0], + [-1.0, -1.0, -1.0, -1.0, -1.0, 1.0, 1.0, 1.0, 1.0], + [-1.0, -1.0, -1.0, -1.0, -1.0, 1.0, 1.0, 1.0, 1.0], + [-1.0, -1.0, -1.0, -1.0, -1.0, 1.0, 1.0, 1.0, 1.0], + [-1.0, -1.0, -1.0, -1.0, -1.0, 1.0, 1.0, 1.0, 1.0], + [-1.0, -1.0, -1.0, -1.0, -1.0, 1.0, 1.0, 1.0, 1.0] + ], + "correct_ownership": [ + "BBBBBWWBB", + "BBBBBWBBB", + "BBWWWWBBB", + "WWWWWBBBB", + "WWWWWBBBB", + "WWWWWBBBB", + "WWWWWBBBB", + "WWWWWBBBB", + "WWWWWBBBB" + ] +} diff --git a/test/autoscore_test_files/game_dev_hex_tests_51750020.json b/test/autoscore_test_files/game_dev_hex_tests_51750020.json new file mode 100644 index 00000000..23a9f537 --- /dev/null +++ b/test/autoscore_test_files/game_dev_hex_tests_51750020.json @@ -0,0 +1,48 @@ +{ + "game_id": 51750020, + "description": "hexahedron says: This is an approach ko rather than a direct ko, so Black is NOT obligated to capture B9 before the end of the game, which would result in Black losing one point of territory. In this position, white DOES have a way to win this game by playing it out. White can initiate the two-step ko, and then use the multiple ko threats in the upper right to force Black to give up something. So White should do so rather than agreeing to end the game here.", + "board": [ + "bW bWb ", + " bbbbWb ", + "bbWWWWb ", + "WW Wb b ", + " WWWb ", + " Wb ", + " Wb ", + " W Wb b ", + " WWb " + ], + "black": [ + [ 1.0, 1.0, 1.0, 1.0, 1.0, -1.0, 1.0, 1.0, 1.0], + [ 1.0, 1.0, 1.0, 1.0, 1.0, -1.0, 1.0, 1.0, 1.0], + [ 1.0, 1.0, -1.0, -1.0, -1.0, -1.0, 1.0, 1.0, 1.0], + [-1.0, -1.0, -1.0, -1.0, -1.0, 1.0, 1.0, 1.0, 1.0], + [-1.0, -1.0, -1.0, -1.0, -1.0, 1.0, 1.0, 1.0, 1.0], + [-1.0, -1.0, -1.0, -1.0, -1.0, 1.0, 1.0, 1.0, 1.0], + [-1.0, -1.0, -1.0, -1.0, -1.0, 1.0, 1.0, 1.0, 1.0], + [-1.0, -1.0, -1.0, -1.0, -1.0, 1.0, 1.0, 1.0, 1.0], + [-1.0, -1.0, -1.0, -1.0, -1.0, -1.0, 1.0, 1.0, 1.0] + ], + "white": [ + [ 1.0, 1.0, 1.0, 1.0, 1.0, -1.0, 1.0, 1.0, 1.0], + [ 1.0, 1.0, 1.0, 1.0, 1.0, -1.0, 1.0, 1.0, 1.0], + [ 1.0, 1.0, -1.0, -1.0, -1.0, -1.0, 1.0, 1.0, 1.0], + [-1.0, -1.0, -1.0, -1.0, -1.0, 1.0, 1.0, 1.0, 1.0], + [-1.0, -1.0, -1.0, -1.0, -1.0, 1.0, 1.0, 1.0, 1.0], + [-1.0, -1.0, -1.0, -1.0, -1.0, 1.0, 1.0, 1.0, 1.0], + [-1.0, -1.0, -1.0, -1.0, -1.0, 1.0, 1.0, 1.0, 1.0], + [-1.0, -1.0, -1.0, -1.0, -1.0, 1.0, 1.0, 1.0, 1.0], + [-1.0, -1.0, -1.0, -1.0, -1.0, -1.0, 1.0, 1.0, 1.0] + ], + "correct_ownership": [ + "BBBBBWBBB", + "BBBBBWBBB", + "BBWWWWBBB", + "WWWWWBBBB", + "WWWWWBBBB", + "WWWWWBBBB", + "WWWWWBBBB", + "WWWWWBBBB", + "WWWWWWBBB" + ] +}