12 lines
821 B
Markdown
12 lines
821 B
Markdown
# Breakthrough
|
|
Reposity for the second CSCE 315 project
|
|
|
|
The main.cpp file contains all the structure necessary to play breakthrough in a local machine; it has all the classes incorporated to it, and it seems to be bug-free and bulletproof. So far, it only has a simple AI that picks random movements.
|
|
|
|
To test it:
|
|
|
|
- compile using c++11. For example: g++ -std=c++11 main.cpp
|
|
- An example of valid command is: B2_FWD, where B is the column letter, 2 is the row number (see board print on screen when running the program), underscore, and either "FWD" for forward, "LEFT" for moving a piece forward (relative to the piece) and left (relative to the board, not the piece), or "RIGHT" (similar to left, but moving right relative to the board).
|
|
|
|
As of now, the program will automatically terminate once either player wins.
|
|
|