public void gameTurn(int turn) {
// System.err.println("Starting turn " + turn);
+ view.startTurn();
+
boolean disqual = false;
boolean victory = false;
boolean exhausted = false;
}
if (model.haveWinner()) {
- int winner = model.getWinner();
- gameManager.addToGameSummary(GameManager.formatErrorMessage("Troll destroys " + gameManager.getPlayer(winner).getNicknameToken()));
+ int loser = model.getLoser();
+ gameManager.addToGameSummary(GameManager.formatErrorMessage("Troll destroys " + gameManager.getPlayer(loser).getNicknameToken()) + ".");
victory = true;
}
else if (model.exhausted()) exhausted = true;
int s1 = p1.getScore();
if (s0 > s1) {
- gameManager.addToGameSummary(GameManager.formatSuccessMessage(p0.getNicknameToken() + " wins"));
+ gameManager.addToGameSummary(GameManager.formatSuccessMessage(p0.getNicknameToken() + " wins."));
p1.view.destroy();
}
else if (s0 < s1) {
- gameManager.addToGameSummary(GameManager.formatSuccessMessage(p1.getNicknameToken() + " wins"));
+ gameManager.addToGameSummary(GameManager.formatSuccessMessage(p1.getNicknameToken() + " wins."));
p0.view.destroy();
}
else if (s0 < 0) {