Ejemplo n.º 1
0
        public static Kakuro CreateWikipediaKakuro()
        {
            Kakuro wikipediaKakuro = new Kakuro(7);

            wikipediaKakuro.AddHorizontalBlock(0, 1, 0, 16)
            .AddHorizontalBlock(4, 6, 0, 24)
            .AddHorizontalBlock(0, 1, 1, 17)
            .AddHorizontalBlock(3, 6, 1, 29)
            .AddHorizontalBlock(0, 4, 2, 35)
            .AddHorizontalBlock(1, 2, 3, 7)
            .AddHorizontalBlock(4, 5, 3, 8)
            .AddHorizontalBlock(2, 6, 4, 16)
            .AddHorizontalBlock(0, 3, 5, 21)
            .AddHorizontalBlock(5, 6, 5, 5)
            .AddHorizontalBlock(0, 2, 6, 6)
            .AddHorizontalBlock(5, 6, 6, 3)
            .AddVerticalBlock(0, 0, 2, 23)
            .AddVerticalBlock(0, 5, 6, 11)
            .AddVerticalBlock(1, 0, 3, 30)
            .AddVerticalBlock(1, 5, 6, 10)
            .AddVerticalBlock(2, 2, 6, 15)
            .AddVerticalBlock(3, 1, 2, 17)
            .AddVerticalBlock(3, 4, 5, 7)
            .AddVerticalBlock(4, 0, 4, 27)
            .AddVerticalBlock(5, 0, 1, 12)
            .AddVerticalBlock(5, 3, 6, 12)
            .AddVerticalBlock(6, 0, 1, 16)
            .AddVerticalBlock(6, 4, 6, 7);
            return(wikipediaKakuro);
        }
Ejemplo n.º 2
0
        public static Kakuro CreateKakuro()
        {
            Kakuro kakuro = new Kakuro(10);

            kakuro.AddHorizontalBlock(1, 2, 0, 16)
            .AddHorizontalBlock(6, 9, 0, 29)
            .AddHorizontalBlock(0, 4, 1, 32)
            .AddHorizontalBlock(6, 9, 1, 30)
            .AddHorizontalBlock(0, 1, 2, 9)
            .AddHorizontalBlock(3, 5, 2, 23)
            .AddHorizontalBlock(8, 9, 2, 16)
            .AddHorizontalBlock(0, 1, 3, 6)
            .AddHorizontalBlock(3, 6, 3, 30)
            .AddHorizontalBlock(8, 9, 3, 4)
            .AddHorizontalBlock(2, 3, 4, 17)
            .AddHorizontalBlock(5, 9, 4, 27)
            .AddHorizontalBlock(0, 4, 5, 28)
            .AddHorizontalBlock(6, 7, 5, 14)
            .AddHorizontalBlock(0, 1, 6, 3)
            .AddHorizontalBlock(3, 6, 6, 21)
            .AddHorizontalBlock(8, 9, 6, 13)
            .AddHorizontalBlock(0, 1, 7, 4)
            .AddHorizontalBlock(4, 6, 7, 7)
            .AddHorizontalBlock(8, 9, 7, 8)
            .AddHorizontalBlock(0, 3, 8, 21)
            .AddHorizontalBlock(5, 9, 8, 23)
            .AddHorizontalBlock(0, 3, 9, 19)
            .AddHorizontalBlock(7, 8, 9, 3)
            .AddVerticalBlock(0, 1, 3, 7)
            .AddVerticalBlock(0, 5, 9, 22)
            .AddVerticalBlock(1, 0, 3, 29)
            .AddVerticalBlock(1, 5, 9, 24)
            .AddVerticalBlock(2, 0, 1, 16)
            .AddVerticalBlock(2, 4, 5, 16)
            .AddVerticalBlock(2, 8, 9, 4)
            .AddVerticalBlock(3, 1, 6, 37)
            .AddVerticalBlock(3, 8, 9, 3)
            .AddVerticalBlock(4, 1, 3, 23)
            .AddVerticalBlock(4, 5, 7, 18)
            .AddVerticalBlock(5, 2, 4, 23)
            .AddVerticalBlock(5, 6, 8, 21)
            .AddVerticalBlock(6, 0, 1, 12)
            .AddVerticalBlock(6, 3, 8, 25)
            .AddVerticalBlock(7, 0, 1, 16)
            .AddVerticalBlock(7, 4, 5, 17)
            .AddVerticalBlock(7, 8, 9, 3)
            .AddVerticalBlock(8, 0, 4, 26)
            .AddVerticalBlock(8, 6, 9, 10)
            .AddVerticalBlock(9, 0, 4, 28)
            .AddVerticalBlock(9, 6, 8, 23);
            return(kakuro);
        }