src/Game.js
/** A `randomNext` picks one of the next states at random.
	*/
A `randomNext` picks one of the next states at random.
A ` randomNext ` picks one of the next states at random .
function randomNext(random, update) {
		var allMoves = this.moves(),
			randomMoves = {};
		this.activePlayers.forEach(function (activePlayer) {
			randomMoves[activePlayer] = random.choice(allMoves[activePlayer]);
		});
		return {
			state: this.next(randomMoves, null, update),
			moves: randomMoves
		};
	}
function randomNext ( random , update ) { var allMoves = this . moves ( ) , randomMoves = { } ; this . activePlayers . forEach ( function ( activePlayer ) { randomMoves [ activePlayer ] = random . choice ( allMoves [ activePlayer ] ) ; } ) ; return { state : this . next ( randomMoves , null , update ) , moves : randomMoves } ; }
A `randomNext` picks one of the next states at random.
A ` randomNext ` picks one of the next states at random .