فهرست منبع

Score whenever a robot gets destroyed. Closes #7.

Sacha Ligthert 2 سال پیش
والد
کامیت
371de84218
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  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++
+
 }