Ejemplo n.º 1
0
        public GameBoard Create(Version version)
        {
            var template = Templates[version];

            var builder = new BoardBuilder()
                          .SetSize(template.BoardSize)
                          .SetCorners(template.CornerSize);

            foreach (var color in template.Colors.Where(color => color != Color.None))
            {
                PopulateColor(builder, color, template.KingOnLeft);
            }

            return(builder.Build());
        }