[RULE CHANGE] *Victory by "attrition"* + Bug fixes
[progcomp2012.git] / judge / manager / stratego.cpp
index e7cf60a..5acfaa3 100644 (file)
@@ -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