SHARE
TWEET

TicTacToe - board.h

vsg1990 Sep 17th, 2012 56 Never
  1. #include <string>
  2. #include <iostream>
  3.  
  4. using std::string;
  5.  
  6. class Board
  7. {
  8. public:
  9.         Board();
  10.         int SetSquare(int nPosition, string XorO);
  11.         void PrintBoard();
  12.         void ResetBoard();
  13.         bool CheckWinCondition();
  14.         string GetWinningPlayer();
  15. private:
  16.         string sPosTopLeft;
  17.         string sPosTopMid;
  18.         string sPosTopRight;
  19.         string sPosMidLeft;
  20.         string sPosMidMid;
  21.         string sPosMidRight;
  22.         string sPosBotLeft;
  23.         string sPosBotMid;
  24.         string sPosBotRight;
  25.         string sWinningPlayer;
  26.  
  27. };
RAW Paste Data
Top