Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // Created by domin on 09.03.2019.
- //
- #ifndef SAPER_PO_MINESWEEPERBOARD_H
- #define SAPER_PO_MINESWEEPERBOARD_H
- enum GameMode { DEBUG, EASY, NORMAL, HARD };
- enum GameState { RUNNING, FINISHED_WIN, FINISHED_LOSS };
- struct Field
- {
- bool hasMine;
- bool hasFlag;
- bool isRevealed;
- };
- class MinesweeperBoard
- {
- public:
- Field board[100][100];
- int width;
- int height;
- void set_board();
- GameMode mode;
- int Minecount;
- public:
- MinesweeperBoard();
- void debug_display();
- void gamemode (GameMode mode);
- int getBoardWidth() const;
- int getBoardHeight() const;
- int getMineCount() const;
- void countMines(int x, int y);
- bool hasFlag(int x, int y) const;
- };
- #endif //SAPER_PO_MINESWEEPERBOARD_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement