// 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(); }
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(); }
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; }