Trabalho Prático - PDS2
Carregando...
Procurando...
Nenhuma entrada encontrado
game.hpp
1#ifndef GAME_HPP
2#define GAME_HPP
3
4#include <map>
5#include "board.hpp"
6#include "terminal_utils.hpp"
7
8
9class Game {
10 protected:
11 Board board;
12 std::pair<int, int> move;
13 char current_player;
14
15 public:
16
17 Game(int rows, int cols);
18
19 virtual void readMove() = 0;
20
21 virtual void makeMove() = 0;
22
23 virtual char isGameFinished() = 0;
24
25 void changePlayer();
26
27 virtual void printBoard();
28
29 virtual ~Game() = default;
30};
31
32#endif
Definição board.hpp:8
Definição game.hpp:9
virtual void printBoard()
Prints the current state of the game board to the standard output.
Definição game.cpp:20
Game(int rows, int cols)
Constructs a new Game object with the specified number of rows and columns.
Definição game.cpp:9