#ifndef BOARD_HPP #define BOARD_HPP #include #include "cell.hpp" namespace engine { class Board { private: int width; int height; std::vector> grid; public: Board(int w, int h) : width(w), height(h), grid(h, std::vector(w)) {} int getWidth() const { return width; } int getHeight() const { return height; } Cell& getCell(int x, int y) { return grid[y][x]; } void setPiece(int x, int y, const Piece& piece) { grid[y][x].pieceId = std::make_shared(piece); } }; } // namespace engine #endif