Skip to content
Snippets Groups Projects
Commit b00d5142 authored by Piers Williams's avatar Piers Williams
Browse files

Fixed it so that missiles die when they hit stuff

parent 4da33fa0
No related branches found
No related tags found
No related merge requests found
......@@ -177,6 +177,7 @@ public class SimpleBattle {
int playerID = (actor == s1 ? 1 : 0);
PlayerStats stats = this.stats.get(playerID);
stats.nPoints += pointsPerKill;
ob.hit();
return;
}
}
......
......@@ -3,6 +3,8 @@ package battle.controllers.Piers;
import battle.BattleController;
import battle.SimpleBattle;
import battle.controllers.EmptyController;
import battle.controllers.Memo.MemoControllerRandom;
import battle.controllers.mmmcts.MMMCTS;
/**
* Created by pwillic on 12/06/2015.
......@@ -11,7 +13,7 @@ public class PiersBattleTest {
public static void main(String[] args) {
SimpleBattle battle = new SimpleBattle();
BattleController player1 = new EmptyController();
BattleController player1 = new MMMCTS();
BattleController player2 = new PiersMCTS();
battle.playGame(player1, player2);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment