fix spacing
this totally was not an ai commit
This commit is contained in:
parent
4de6ada927
commit
7426ddaf74
1 changed files with 3 additions and 0 deletions
|
|
@ -221,6 +221,8 @@ func (gameState *GameState) Run() error {
|
||||||
|
|
||||||
if gameState.outputFile != nil {
|
if gameState.outputFile != nil {
|
||||||
// insert initial game start into database
|
// insert initial game start into database
|
||||||
|
// direct db call since this is the first event
|
||||||
|
|
||||||
bytes, err := json.Marshal(boardGame)
|
bytes, err := json.Marshal(boardGame)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
@ -362,6 +364,7 @@ func (gameState *GameState) Run() error {
|
||||||
|
|
||||||
if gameState.outputFile != nil {
|
if gameState.outputFile != nil {
|
||||||
// write frames array to db
|
// write frames array to db
|
||||||
|
|
||||||
// insert game end into database
|
// insert game end into database
|
||||||
bytes, err := json.Marshal(endEvent)
|
bytes, err := json.Marshal(endEvent)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue