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(" "); } }
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 " "; } }