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

Upload New File

parent 271f13f3
No related branches found
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