tests/lib/ludorum.js
/** static games.ToadsAndFrogs.board(chips=3, separation=2):
		Makes a board for Toads & Frogs. This is a single row with the given 
		number of chips for each player (toads to the left and frogs to the
		right) separated by the given number of empty spaces.
	*/
static games.ToadsAndFrogs.board(chips=3, separation=2):
Makes a board for Toads & Frogs. This is a single row with the given
number of chips for each player (toads to the left and frogs to the
right) separated by the given number of empty spaces.
static games . ToadsAndFrogs . board ( chips = 3 separation = 2 ) : Makes a board for Toads & Frogs . This is a single row with the given number of chips for each player ( toads to the left and frogs to the right ) separated by the given number of empty spaces .
function board(chips, separation) {
		chips = isNaN(chips) ? 3 : +chips;
		separation = isNaN(separation) ? 2 : +separation;
		return 'T'.repeat(chips) + '_'.repeat(separation) + 'F'.repeat(chips);
	}
function board ( chips , separation ) { chips = isNaN ( chips ) ? 3 : + chips ; separation = isNaN ( separation ) ? 2 : + separation ; return 'T' . repeat ( chips ) + '_' . repeat ( separation ) + 'F' . repeat ( chips ) ; }
static games.ToadsAndFrogs.board(chips=3, separation=2):
Makes a board for Toads & Frogs.
static games . ToadsAndFrogs . board ( chips = 3 separation = 2 ) : Makes a board for Toads & Frogs .