summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
5c8d8d3)
Former transcript example:
egaetan tried not throwing stones. Fixing that for them because I'm in a good mood today.
egaetan throws 1 stone at the troll.
Astrobytes throws 0 stones at the troll.
Troll walks right.
Troll destroys egaetan
egaetan wins
}
}
int getWinner() { return winner; }
}
}
int getWinner() { return winner; }
+ int getLoser() { return 1 - winner; }
boolean exhausted() {
return p0.getStones() <= 0 && p1.getStones() <= 0;
boolean exhausted() {
return p0.getStones() <= 0 && p1.getStones() <= 0;
}
if (model.haveWinner()) {
}
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;
victory = true;
}
else if (model.exhausted()) exhausted = true;
int s1 = p1.getScore();
if (s0 > s1) {
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) {
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) {
p0.view.destroy();
}
else if (s0 < 0) {