src/games/ToadsAndFrogs.js
/** A `board` builder for Toads & Frogs. These boards are single rows with a given number of 
	`chips` for each player (toads to the left and frogs to the right) separated by the given number 
	of empty spaces (`separation`).
	*/
A `board` builder for Toads & Frogs. These boards are single rows with a given number of
`chips` for each player (toads to the left and frogs to the right) separated by the given number
of empty spaces (`separation`).
A ` board ` builder for Toads & Frogs . These boards are single rows with a given number of ` chips ` for each player ( toads to the left and frogs to the right ) separated by the given number of empty spaces ( ` separation ` ) .
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 ) ; }
A `board` builder for Toads & Frogs.
A ` board ` builder for Toads & Frogs .