Skip to content
Snippets Groups Projects
Commit 839950fe authored by Susa Márk's avatar Susa Márk
Browse files

Upload New File

parent 20df9f72
Branches
No related tags found
No related merge requests found
#ifndef GAMELOGIC_HPP
#define GAMELOGIC_HPP
class GameLogic {
public:
static const int pathSize = 15;
GameLogic();
void restartGame();
bool checkWin() const;
bool makeMove(int x, int y, char player);
char getCurrentPlayer() const;
char getCell(int x, int y) const;
bool isPathFull() const;
private:
char path[pathSize][pathSize];
int currentPlayer;
};
#endif // GAMELOGIC_HPP
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment