Esempio n. 1
0
        public Picross()
        {
            PuzzleName = "Picross 5x5";
            _picrossChart = new int[5][]
            {
                new int[] {1, 1, 0, 0, 0},
                new int[] {1, 0, 1, 0, 1},
                new int[] {1, 1, 1, 0, 0},
                new int[] {0, 1, 1, 1, 0},
                new int[] {1, 0, 1, 1, 1}
            };

            _picrossColorChart = new int[5][]
            {
                new int[] {0, 0, 0, 0, 0},
                new int[] {0, 0, 0, 0, 0},
                new int[] {0, 0, 0, 0, 0},
                new int[] {0, 0, 0, 0, 0},
                new int[] {0, 0, 0, 0, 0}
            };

            _chainColChart = new int[3][]
            {
                new int[] {0, 0, 0, 0, 0},
                new int[] {0, 0, 0, 0, 0},
                new int[] {0, 0, 0, 0, 0}
            };

            FillColChart();

            _chainRowChart = new int[5][]
            {
                new int[] {0, 0, 0},
                new int[] {0, 0, 0},
                new int[] {0, 0, 0},
                new int[] {0, 0, 0},
                new int[] {0, 0, 0}
            };

            FillRowChart();

            FillNumValid();

            this.NumCorrect = 0;

            this.NumError = 0;

            this.GameState = 0;

            _setting = new Setting();
        }
Esempio n. 2
0
        public Picross(int i)
        {
            ID = i;

            if (ID == 1)
            {
                PuzzleName = "House";

                _picrossChart = new int[5][]
                {
                    new int[] {0, 0, 1, 0, 0},
                    new int[] {0, 1, 1, 1, 0},
                    new int[] {1, 1, 1, 1, 1},
                    new int[] {1, 1, 0, 1, 1},
                    new int[] {1, 1, 0, 1, 1}
                };
            }

            if (ID == 2)
            {
                PuzzleName = "Man";

                _picrossChart = new int[5][]
                {
                    new int[] {1, 0, 1, 0, 1},
                    new int[] {0, 1, 1, 1, 0},
                    new int[] {0, 0, 1, 0, 0},
                    new int[] {0, 1, 0, 1, 0},
                    new int[] {1, 0, 0, 0, 1}
                };
            }

            if (ID == 3)
            {
                PuzzleName = "Bear";

                _picrossChart = new int[5][]
                {
                    new int[] {0, 1, 0, 1, 0},
                    new int[] {1, 1, 0, 1, 1},
                    new int[] {0, 0, 1, 0, 0},
                    new int[] {1, 0, 0, 0, 1},
                    new int[] {1, 1, 1, 1, 1}
                };
            }

            if (ID == 4)
            {
                PuzzleName = "Liver";

                _picrossChart = new int[5][]
                {
                    new int[] {1, 1, 0, 1, 1},
                    new int[] {1, 0, 0, 0, 1},
                    new int[] {1, 1, 1, 0, 0},
                    new int[] {1, 0, 0, 0, 0},
                    new int[] {1, 0, 1, 1, 1}
                };
            }

            if (ID == 5)
            {
                PuzzleName = "Facebook";

                _picrossChart = new int[5][]
                {
                    new int[] {0, 0, 1, 1, 1},
                    new int[] {0, 0, 1, 0, 0},
                    new int[] {0, 0, 1, 0, 0},
                    new int[] {0, 1, 1, 1, 0},
                    new int[] {0, 0, 1, 0, 0}
                };
            }

            if (ID == 6)
            {
                PuzzleName = "Tetris";

                _picrossChart = new int[5][]
                {
                    new int[] {0, 0, 0, 0, 0},
                    new int[] {1, 1, 0, 0, 0},
                    new int[] {0, 1, 1, 0, 0},
                    new int[] {0, 0, 0, 0, 0},
                    new int[] {1, 1, 0, 1, 1}
                };
            }

            _picrossColorChart = new int[5][]
            {
                new int[] {0, 0, 0, 0, 0},
                new int[] {0, 0, 0, 0, 0},
                new int[] {0, 0, 0, 0, 0},
                new int[] {0, 0, 0, 0, 0},
                new int[] {0, 0, 0, 0, 0}
            };

            _chainColChart = new int[3][]
            {
                new int[] {0, 0, 0, 0, 0},
                new int[] {0, 0, 0, 0, 0},
                new int[] {0, 0, 0, 0, 0}
            };

            FillColChart();

            _chainRowChart = new int[5][]
            {
                new int[] {0, 0, 0},
                new int[] {0, 0, 0},
                new int[] {0, 0, 0},
                new int[] {0, 0, 0},
                new int[] {0, 0, 0}
            };

            FillRowChart();

            FillNumValid();

            this.NumCorrect = 0;

            this.NumError = 0;

            this.GameState = 0;

            _setting = new Setting();
        }