Add player and board size meta data to all game maps (#84)

* WIP: initial data model for new meta props
* WIP: implemented new props
* test and bug fix:
- add coverage of players and sizes
- fix unlimited map size bug
* FIX: update supported players for arcade to 6
* fix: test should be min -> max, not max->max
* Change some naming and the FixedSizes function
* update comment to reflect API changes
* improve comment clarity
* rename field for improved clarity
* change some more "map" -> "board" wording
This commit is contained in:
Torben 2022-06-19 20:09:17 -07:00 committed by GitHub
parent cb014e7b37
commit 3180429688
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 146 additions and 5 deletions

View file

@ -20,6 +20,9 @@ func (m ArcadeMazeMap) Meta() Metadata {
Description: "Generic arcade maze map with deadly hazard walls.",
Author: "Battlesnake",
Version: 1,
MinPlayers: 1,
MaxPlayers: 6,
BoardSizes: FixedSizes(Dimensions{19, 21}),
}
}