Sfoglia il codice sorgente

Initalizes robots during `initialization()`, prevents weird behaviour.

Sacha Ligthert 2 anni fa
parent
commit
063cab6521
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      game.go

+ 2 - 0
game.go

@@ -71,6 +71,8 @@ func initialize() (Game, error) {
 		gameover: 0,
 	}
 
+	game.initRobots()
+
 	return game, err
 }