src/games/ToadsAndFrogs.js
/** The active players `moves` is a list of square indexes (integers) in the board, where chips
	can be moved in one of the two ways possible in this game.
	*/
The active players `moves` is a list of square indexes (integers) in the board, where chips
can be moved in one of the two ways possible in this game.
The active players ` moves ` is a list of square indexes ( integers ) in the board where chips can be moved in one of the two ways possible in this game .
function moves() {
		var activePlayer = this.activePlayer(),
			result = {}, 
			ms = result[activePlayer] = [];
		this.board.replace(activePlayer == this.players[0] ? /TF?_/g : /_T?F/g, function (m, i) {
			ms.push(i);
			return m;
		});
		return ms.length > 0 ? result : null;
	}
function moves ( ) { var activePlayer = this . activePlayer ( ) , result = { } , ms = result [ activePlayer ] = [ ] ; this . board . replace ( activePlayer == this . players [ 0 ] ? / TF?_ / g : / _T?F / g , function ( m , i ) { ms . push ( i ) ; return m ; } ) ; return ms . length > 0 ? result : null ; }
The active players `moves` is a list of square indexes (integers) in the board, where chips
can be moved in one of the two ways possible in this game.
The active players ` moves ` is a list of square indexes ( integers ) in the board where chips can be moved in one of the two ways possible in this game .