Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- #include <fstream>
- #include <string.h>
- #include <ctime>
- #include <vector>
- #include <SFML/Graphics.hpp>
- using namespace std;
- class Gomoku {
- public:
- Gomoku(sf::RenderWindow& window);
- void menu(sf::RenderWindow &window);
- int getBoardsize();
- void setBoard();
- void printBoard();
- int player1();
- int player2();
- void playVsPlayer();
- void playVsBot();
- bool determineWinner();
- void bot();
- private:
- sf::Texture t_background;
- sf::Sprite s_background;
- sf::Texture t_playButton;
- sf::Sprite s_playButton;
- sf::Texture t_quitButton;
- sf::Sprite s_quitButton;
- sf::Font f_title;
- sf::Text t_title;
- int choice;
- int boardSize;
- vector< vector<int> > board;
- int row;
- int rowBot;
- int columnBot;
- char letter;
- int column;
- int counter;
- int symb;
- int c;
- int turn;
- int end;
- int random;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement