Explorar el Código

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

Sacha Ligthert hace 2 años
padre
commit
063cab6521
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      game.go

+ 2 - 0
game.go

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