X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=manager%2Fstratego.h;fp=manager%2Fstratego.h;h=39e887310d6e43f23f858eb3f4f580afd601166f;hb=b563784f7e8b559fc100e174331c99fc6a1beda8;hp=6f0f8fe5a48a30df480a71303bed7d121952bf93;hpb=4a3c0478160e7e9b637a12e7cf22f8da61b66ad2;p=progcomp2012.git diff --git a/manager/stratego.h b/manager/stratego.h index 6f0f8fe..39e8873 100644 --- a/manager/stratego.h +++ b/manager/stratego.h @@ -101,6 +101,7 @@ class Board virtual ~Board(); //Destructor void Print(FILE * stream, const Piece::Colour & reveal=Piece::BOTH); //Print board + void PrintPretty(FILE * stream, const Piece::Colour & reveal=Piece::BOTH); //Print board using colour void Draw(const Piece::Colour & reveal=Piece::BOTH); //Draw board @@ -117,7 +118,7 @@ class Board static bool LegalResult(const MovementResult & result) { - return (result == MovementResult::OK || result == MovementResult::DIES || result == MovementResult::KILLS || result == MovementResult::BOTH_DIE); + return (result == MovementResult::OK || result == MovementResult::DIES || result == MovementResult::KILLS || result == MovementResult::BOTH_DIE || result == MovementResult::VICTORY || result == MovementResult::DRAW); } MovementResult MovePiece(int x, int y, const Direction & direction, int multiplier=1,const Piece::Colour & colour=Piece::NONE); //Move piece from position in direction