Example #1
0
 // Start is called before the first frame update
 void Start()
 {
     scorecpt       = 0;
     score.text     = scorecpt.ToString();
     f              = new FillBoard();
     highscorecpt   = f.getHighScore();
     HighScore.text = highscorecpt.ToString();
 }
Example #2
0
        public void Test(string testCase)
        {
            TestBoard board     = new TestBoard(testCase);
            FillBoard fillBoard = new FillBoard(board);
            var       task      = fillBoard.Do();

            while (task.IsCompleted == false)
            {
            }
            if (task.Exception != null)
            {
                throw task.Exception;
            }
            board.Test();
        }
Example #3
0
        public void StartGame()
        {
            Wyczysc();
            FillBoard fill = new FillBoard(game, this);

            mine_label.Text = game.Board.MineCount.ToString();


            procent_label.Text = "0";
            game.TimeClean();
            game.ShowedField = 0;


            Window();

            timer.Start();
            lose_b.Visible = true;
        }