change map support for large #'s of snakes (#92)

* change map support for large #'s of snakes

* test square board fn

* format comment

* add whitespace

* better support large #'s of snakes on small boards

* include an intermediate xlarge size
This commit is contained in:
Torben 2022-07-07 11:14:30 -07:00 committed by GitHub
parent 08cb7ae61d
commit 663c377cc4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 174 additions and 101 deletions

View file

@ -43,7 +43,7 @@ func TestStandardMapSetupBoard(t *testing.T) {
&rules.BoardState{
Width: 7,
Height: 7,
Snakes: generateSnakes(9),
Snakes: generateSnakes(17),
Food: []rules.Point{},
Hazards: []rules.Point{},
},
@ -62,7 +62,7 @@ func TestStandardMapSetupBoard(t *testing.T) {
},
rules.MinRand,
nil,
rules.ErrorNoRoomForSnake,
rules.ErrorTooManySnakes,
},
{
"full 11x11 min",