Example #1
0
        public void new_game()
        {
            game_over = false;
            int[] cell_size = new int[2] {
                20, 20
            };
            field1.clear();
            field2.clear();
            figure1 = null;
            figure2 = null;
            int type = random.Next(7);

            figure1 = new Figure(figures[type], colors[type], new int[2] {
                4, 0
            });
            type    = random.Next(7);
            figure2 = new Figure(figures[type], colors[type], new int[2] {
                0, 0
            });
            cell_transfer(field1, figure1);
            cell_transfer(field2, figure2);
        }