123456789101112131415161718192021222324252627 |
- // SPDX-License-Identifier: GPL-2.0-or-later
- #ifndef _SNAKE_GAME_HPP_
- #define _SNAKE_GAME_HPP_
- #include <Snake/Position.hpp>
- #include <Snake/Direction.hpp>
- #include <Snake/Snake.hpp>
- class Game
- {
- public:
- Game(uint8_t size);
- const uint8_t size;
- Snake snake;
- Position apple;
- bool isInsideField(const Position& position) const;
- void doStep();
- };
- #endif
|