Advertisement
vsg1990

TicTacToe - board.h

Sep 17th, 2012
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.47 KB | None | 0 0
  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. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement