Beispiel #1
0
        private static string GetName(PiceType type)
        {
            switch (type)
            {
            case PiceType.Pawn: return("P");

            case PiceType.Rook: return("R");

            case PiceType.Knight: return("N");

            case PiceType.Bishop: return("B");

            case PiceType.Queen: return("Q");

            case PiceType.King: return("K");

            default: return(" ");
            }
        }
Beispiel #2
0
 private static string GetName(PiceType type)
 {
     switch (type)
     {
         case PiceType.Pawn: return "P";
         case PiceType.Rook: return "R";
         case PiceType.Knight: return "N";
         case PiceType.Bishop: return "B";
         case PiceType.Queen: return "Q";
         case PiceType.King: return "K";
         default: return " ";
     }
 }