src/Game.js
/** In most games there is only one active player per turn. The method `activePlayer()` returns
	that active player's role if there is one and only one, else it raises an error.
	*/
In most games there is only one active player per turn. The method `activePlayer()` returns
that active player's role if there is one and only one, else it raises an error.
In most games there is only one active player per turn . The method ` activePlayer () ` returns that active player ' s role if there is one and only one else it raises an error .
function activePlayer() {
		var len = this.activePlayers.length;
		raiseIf(len < 1, 'There are no active players!');
		raiseIf(len > 1, 'More than one player is active!');
		return this.activePlayers[0];
	}
function activePlayer ( ) { var len = this . activePlayers . length ; raiseIf ( len < 1 , 'There are no active players!' ) ; raiseIf ( len > 1 , 'More than one player is active!' ) ; return this . activePlayers [ 0 ] ; }
In most games there is only one active player per turn.
In most games there is only one active player per turn .