Explorar o código

Score whenever a robot gets destroyed. Closes #7.

Sacha Ligthert %!s(int64=2) %!d(string=hai) anos
pai
achega
371de84218
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      robots.go

+ 2 - 0
robots.go

@@ -88,4 +88,6 @@ func (game *Game) deleteRobot(robot int) {
 	game.robots = nil
 	game.robots = rowboz
 
+	game.player.score++
+
 }