Create method (function) for button action

This commit is contained in:
Dita Aji Pratama 2026-04-11 12:05:12 +07:00
parent e742d92a47
commit e2b9e5fd0b

View File

@ -14,6 +14,17 @@ namespace GuessTheCard
previousDice = randomDice; previousDice = randomDice;
labelCard.Text = "Result : " + randomDice; labelCard.Text = "Result : " + randomDice;
labelScore.Text = "Score: " + score; labelScore.Text = "Score: " + score;
}
private void buttonHigh_Click(object sender, EventArgs e)
{
PlayRound(1);
}
private void buttonLow_Click(object sender, EventArgs e)
{
PlayRound(0);
} }
} }
} }