* Reset the state of the game. * * @return {object} Initial state of the game. * See the documentation of `getState()` for details.
()
| 94 | * See the documentation of `getState()` for details. |
| 95 | */ |
| 96 | reset() { |
| 97 | this.initializeSnake_(); |
| 98 | this.fruitSquares_ = null; |
| 99 | this.makeFruits_(); |
| 100 | return this.getState(); |
| 101 | } |
| 102 | |
| 103 | /** |
| 104 | * Perform a step of the game. |
no test coverage detected