Add comment to make sure random spawns are always same color.

This commit is contained in:
Brad Van Vugt 2020-02-19 11:15:03 -08:00
parent b69d768b13
commit 021b363822

View file

@ -95,6 +95,9 @@ func (r *StandardRuleset) placeSnakesFixed(b *BoardState) error {
}
func (r *StandardRuleset) placeSnakesRandomly(b *BoardState) error {
// TODO: Always place on all black or all white squares
for i := 0; i < len(b.Snakes); i++ {
unoccupiedPoints := r.getUnoccupiedPoints(b)
if len(unoccupiedPoints) <= 0 {