diff --git a/src/js/Game.js b/src/js/Game.js index 2ce8d02..ee227d9 100644 --- a/src/js/Game.js +++ b/src/js/Game.js @@ -57,6 +57,15 @@ export class Game this.draw(); } + /** + * Resets the game. + */ + reset() + { + this.#state = new State(); + this.draw(); + } + /** * Replaces the content of the board with the current state. */