Advertisement
theTANCO

Game Challenge 2: Tic Tac Toe - Board.h

Feb 14th, 2023 (edited)
760
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.48 KB | None | 0 0
  1. // MakingGamesWithBen Game Challenge 2: Tic Tac Toe!
  2. // https://www.youtube.com/watch?v=gm2yPC65X78&list=PLSPw4ASQYyynKPY0I-QFHK0iJTjnvNUys&index=21
  3. // main.cpp - https://pastebin.com/M292p0K6
  4. // Board.cpp - https://pastebin.com/DJemtCeA
  5.  
  6. #pragma once
  7. #include <iostream>
  8. #include <string>
  9.  
  10. using namespace std;
  11.  
  12. class Board{
  13. public:
  14.     Board();
  15.     void playGame();
  16.  
  17. private:
  18.     char _board[3][3];
  19.     void initBoard();
  20.     void printBoard();
  21.     int getResult();
  22. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement