Skip to content

Latest commit

 

History

History
48 lines (36 loc) · 593 Bytes

README.md

File metadata and controls

48 lines (36 loc) · 593 Bytes

Breakthrough: Part 1

Implementation of some initial functions needed for AIs competing in a game of Breakthrough.

Dependencies:

  • os
  • copy

How to use:

  • 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.

example output:

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