lib/game.js
/**
	 * Resets the game logic to its original state.
	 */
Resets the game logic to its original state.
Resets the game logic to its original state .
reset() {
		this.state = State.STATE_START
		this.doorStates = createInitialDoorStates(this.doorCount)
		this.carPos = Math.floor(Math.random() * this.doorStates.length)
		this.playerPos = null
		this.switchPos = null
	}
reset ( ) { this . state = State . STATE_START this . doorStates = createInitialDoorStates ( this . doorCount ) this . carPos = Math . floor ( Math . random ( ) * this . doorStates . length ) this . playerPos = null this . switchPos = null }
Resets the game logic to its original state.
Resets the game logic to its original state .