aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar alecdwm 2015-08-16 12:51:35 +1000
committerGravatar alecdwm 2015-08-16 12:51:35 +1000
commit0f5571b2f7f6f99796b35e8e2ce838cba4edc93d (patch)
tree53ba113bd093d1d2c7f7ea9f34d90207aaba8df7
parent25502709e3edf51de420a04bcedfec3a940f2d71 (diff)
Display final gameboard state at endgame
-rw-r--r--src/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 526516a..49765b3 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -31,6 +31,9 @@ int main()
endGame = gameboard.checkWin(player2.getPlayerID(),player2.getSymbol());
}
+ // Print final gameboard
+ gameboard.printGameboard();
+
// Print winning player
if(endGame == player1.getPlayerID()) {
cout << player1.getName() << " Wins!" << endl;