Beispiel #1
0
        private static void DrawRank(this Chessboard chessboard, int rank, bool whiteColor)
        {
            WriteValue("   {0} ", rank + 1);

            for (var file = 0; file < chessboard.Files.Count; file++)
            {
                ApplyColor(whiteColor);

                chessboard.DrawFile(file, rank);

                whiteColor = !whiteColor;

                ApplyColor();
            }

            WritePipe();
            WriteValue(" {0} ", rank + 1);
            WriteNewLine();
        }