예제 #1
0
 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;
 }
예제 #2
0
 public void GetPieceRank()
 {
     var scoutPiece = new Piece("Red", Army.Rank.Scout);
     Assert.AreEqual(Army.Rank.Scout, scoutPiece.GetRank());
 }