Beispiel #1
0
        internal static Unit Draw(this Pieces @this)
        {
            DrawHeaderOrFooter();
            var whiteColor = true;

            for (var rank = Ranks.Count - 1; rank > -1; rank--)
            {
                WriteBlocks(whiteColor);
                @this.DrawRank(ToByte(rank), whiteColor);
                WriteBlocks(whiteColor);

                whiteColor = !whiteColor;
            }

            return(DrawHeaderOrFooter());
        }