소스 검색

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++
+
 }