src/games/Choose2Win.js
/** The constructor takes a number of turns for the game to last (`Infinity` by default), the 
	active player and the winner if the game has ended. 
	*/
The constructor takes a number of turns for the game to last (`Infinity` by default), the
active player and the winner if the game has ended.
The constructor takes a number of turns for the game to last ( ` Infinity ` by default ) the active player and the winner if the game has ended .
function Choose2Win(turns, activePlayer, winner) {
		Game.call(this, activePlayer);
		this.__turns__ = isNaN(turns) ? Infinity : +turns;
		this.__winner__ = winner;		
	}
function Choose2Win ( turns , activePlayer , winner ) { Game . call ( this , activePlayer ) ; this . __turns__ = isNaN ( turns ) ? Infinity : + turns ; this . __winner__ = winner ; }
The constructor takes a number of turns for the game to last (`Infinity` by default), the
active player and the winner if the game has ended.
The constructor takes a number of turns for the game to last ( ` Infinity ` by default ) the active player and the winner if the game has ended .