private int GetClassicPieceMoveRule(Piece piece) { if (piece.GetRank() == Army.Rank.Scout) return -1; if (piece.GetRank() == Army.Rank.Bomb || piece.GetRank() == Army.Rank.Flag) return 0; return 1; }
public void GetPieceRank() { var scoutPiece = new Piece("Red", Army.Rank.Scout); Assert.AreEqual(Army.Rank.Scout, scoutPiece.GetRank()); }