Advertisement
Guest User

h

a guest
Nov 14th, 2019
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.87 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstdlib>
  3. #include <fstream>
  4. #include <string.h>
  5. #include <ctime>
  6. #include <vector>
  7. #include <SFML/Graphics.hpp>
  8.  
  9. using namespace std;
  10.  
  11. class Gomoku {
  12.  
  13. public:
  14.     Gomoku(sf::RenderWindow& window);
  15.     void menu(sf::RenderWindow &window);
  16.     int getBoardsize();
  17.     void setBoard();
  18.     void printBoard();
  19.     int player1();
  20.     int player2();
  21.     void playVsPlayer();
  22.     void playVsBot();
  23.     bool determineWinner();
  24.     void bot();
  25.  
  26. private:
  27.    
  28.     sf::Texture t_background;
  29.     sf::Sprite s_background;
  30.     sf::Texture t_playButton;
  31.     sf::Sprite s_playButton;
  32.     sf::Texture t_quitButton;
  33.     sf::Sprite s_quitButton;
  34.     sf::Font f_title;
  35.     sf::Text t_title;
  36.  
  37.     int choice;
  38.     int boardSize;
  39.     vector< vector<int> > board;
  40.     int row;
  41.     int rowBot;
  42.     int columnBot;
  43.     char letter;
  44.     int column;
  45.     int counter;
  46.     int symb;
  47.     int c;
  48.     int turn;
  49.     int end;
  50.     int random;
  51.  
  52. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement