git.ucc.asn.au
/
progcomp2012.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[RULE CHANGE] *Victory by "attrition"* + Bug fixes
[progcomp2012.git]
/
judge
/
manager
/
stratego.cpp
diff --git
a/judge/manager/stratego.cpp
b/judge/manager/stratego.cpp
index
e7cf60a
..
5acfaa3
100644
(file)
--- a/
judge/manager/stratego.cpp
+++ b/
judge/manager/stratego.cpp
@@
-375,7
+375,7
@@
MovementResult Board::MovePiece(int x, int y, const Direction & direction, int m
if (defender->type == Piece::FLAG)
{
winner = target->colour;
- return MovementResult(MovementResult::VICTORY);
+ return MovementResult(MovementResult::VICTORY
_FLAG
);
}
else if (defender->type == Piece::BOMB)
{
UCC
git Repository :: git.ucc.asn.au