1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 05:47:34 +00:00

2048: East const all the things

This commit is contained in:
Dmitrii Ubskii 2021-06-11 15:39:23 +03:00 committed by Andreas Kling
parent b47d117bd2
commit ec8fe6952f
4 changed files with 17 additions and 17 deletions

View file

@ -11,8 +11,8 @@
class Game final {
public:
Game(size_t grid_size, size_t target_tile, bool evil_ai);
Game(const Game&) = default;
Game& operator=(const Game&) = default;
Game(Game const&) = default;
Game& operator=(Game const&) = default;
enum class MoveOutcome {
OK,
@ -37,7 +37,7 @@ public:
using Board = Vector<Vector<u32>>;
const Board& board() const { return m_board; }
Board const& board() const { return m_board; }
static size_t max_power_for_board(size_t size)
{