From ce09973e7cacccdc779f91b8e6e48a520b9f9f4d Mon Sep 17 00:00:00 2001 From: dozens Date: Sat, 15 Jun 2024 21:15:59 -0600 Subject: feat: add end game --- test/capture-mill-no-mill.dat | 17 +++++++++++++++++ test/capture-oops-all-mills.dat | 4 ++++ 2 files changed, 21 insertions(+) create mode 100644 test/capture-mill-no-mill.dat (limited to 'test') diff --git a/test/capture-mill-no-mill.dat b/test/capture-mill-no-mill.dat new file mode 100644 index 0000000..71223ee --- /dev/null +++ b/test/capture-mill-no-mill.dat @@ -0,0 +1,17 @@ +# this creates a board with with to test the +# "Unless There's No Other Option" exception +# to the "No Breaking Up Mills" capture rule. +# Player 1 is in a position to capture F2 or +# F4, and should not be able to capture any +# checkers from the B2-B4-B6 mill +a1 +b2 +a4 +b4 +d7 +b6 +d7 +f2 +d6 +f4 +a7 diff --git a/test/capture-oops-all-mills.dat b/test/capture-oops-all-mills.dat index 96fec37..b23eddb 100644 --- a/test/capture-oops-all-mills.dat +++ b/test/capture-oops-all-mills.dat @@ -1,3 +1,7 @@ +## This sets up the board to test the "Unless There's No Other Option" +# exception to the "No Breaking Up Mills" capture rule. Player 2 is +# ready to capture, but all of Player 1's checkers are in a mill. +# So Player 2 should be able to capture any piece from the G1-G4-G7 mill. # PLACING PHASE (18 moves) A1 A4 -- cgit 1.4.1-2-gfad0