tests/lib/ludorum.js
/** To help implement the decision, `Player.movesFor(game, player)` gets
	the moves in the game for the player. It also checks if there are any moves,
	and if it not so an error is risen.
	*/
To help implement the decision, `Player.movesFor(game, player)` gets
the moves in the game for the player. It also checks if there are any moves,
and if it not so an error is risen.
To help implement the decision ` Player . movesFor ( game player ) ` gets the moves in the game for the player . It also checks if there are any moves and if it not so an error is risen .
function movesFor(game, role) {
		var moves = game.moves();
		raiseIf(!moves || !moves[role] || moves[role].length < 1, 
			"Player ", role, " has no moves for game ", game, ".");
		return moves[role];
	}
function movesFor ( game , role ) { var moves = game . moves ( ) ; raiseIf ( ! moves || ! moves [ role ] || moves [ role ] . length < 1 , "Player " , role , " has no moves for game " , game , "." ) ; return moves [ role ] ; }
To help implement the decision, `Player.movesFor(game, player)` gets
the moves in the game for the player.
To help implement the decision ` Player . movesFor ( game player ) ` gets the moves in the game for the player .