Implementation of some initial functions needed for AIs competing in a game of Breakthrough.
- os
- copy
- On the CLI: navigate to the directory containing Lab_B.py and type
$python3 andystrozewski-anaverulidze-katrinaziebarth-labB.py -r 5 -c 2 -p 2
. r, c and p refer to the number of rows, columns, and piece rows in that order. Make sure to replace 5, 2 and 2 with integers of choice.
XX
XX
--
OO
OO
Possible Moves for X:
XX
-X
X-
OO
OO
XX
-X
-X
OO
OO
XX
X-
-X
OO
OO
XX
X-
X-
OO
OO