コード例 #1
0
ファイル: View.cs プロジェクト: carlosdaniiel07/chess-game
        private static void PrintOutOfGamePiecesByColor(ChessMatch chessMatch, Color color)
        {
            Console.Write("Out pieces: ");
            Console.ForegroundColor = (ConsoleColor)color;
            string value = "[";

            foreach (var piece in chessMatch.GetOutOfGamePieces(color))
            {
                value += (piece + " ");
            }

            value += "]";

            Console.WriteLine(value);
            Console.ForegroundColor = _defaultConsoleForegroundColor;
        }