allow resetting games
This commit is contained in:
@@ -29,6 +29,18 @@ class GameBoard {
|
||||
*/
|
||||
GameBoard(int boardWidth, int boardHeight, const std::shared_ptr<PiecesList>& bag, int nextQueueLength);
|
||||
|
||||
/**
|
||||
* Resets the board as if it was newly created
|
||||
*/
|
||||
void reset();
|
||||
|
||||
private:
|
||||
/**
|
||||
* Initializes the board
|
||||
*/
|
||||
void initialize();
|
||||
|
||||
public:
|
||||
/**
|
||||
* Tries moving the piece one position to the left
|
||||
* @return If it suceeded
|
||||
|
||||
Reference in New Issue
Block a user