tengen-io / server

:white_circle: Server implementation of the board game Go
MIT License
13 stars 4 forks source link

Default board size to Regulation size #21

Closed camirmas closed 5 years ago

camirmas commented 5 years ago

Right now we default to the small board size in db.CreateGame:

board := Board{Size: SmallBoardSize, Stones: []Stone{}}

This should instead be:

board := Board{Size: RegBoardSize, Stones: []Stone{}}

Also update models.TestCreateGame to ensure that the board is created with the proper size.

In a future iteration, we'll add a parameter to the createGame mutation to choose a different board size.