Commit d530affc authored by Jason Riggs's avatar Jason Riggs

change

parent fd5069e0
......@@ -10,6 +10,35 @@ int main() {
cin >> seed;
srand(seed);
bool winner = false;
int turn = 1;
// ask for difficulty level
// start the game
displayBoard board;
board.start();
// loop until finish
do {
board.printBoard();
cout << "Enter the (X,Y) coordinates of where you would like to place a chip: " ;
int x,y;
cin >> x >> y;
if (turn == 1) {
board.playerMove1(x,y);
turn++;
} else if (turn == 2) {
board.playerMove2(x,y);
turn--;
}
} while (winner == false);
return 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment