Răsfoiți Sursa

Score whenever a robot gets destroyed. Closes #7.

Sacha Ligthert 2 ani în urmă
părinte
comite
371de84218
1 a modificat fișierele cu 2 adăugiri și 0 ștergeri
  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++
+
 }