Exemplo n.º 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(" ");
            }
        }
Exemplo n.º 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 " ";
     }
 }