Init score

This commit is contained in:
Dita Aji Pratama 2026-04-11 11:47:26 +07:00
parent f70754c461
commit eee5a380ca

View File

@ -2,6 +2,8 @@ namespace GuessTheCard
{ {
public partial class Form1 : Form public partial class Form1 : Form
{ {
private int score = 0;
public Form1() public Form1()
{ {
InitializeComponent(); InitializeComponent();
@ -9,6 +11,7 @@ namespace GuessTheCard
Random random = new Random(); Random random = new Random();
int randomDice = random.Next(1, 7); int randomDice = random.Next(1, 7);
labelCard.Text = "Result : " + randomDice; labelCard.Text = "Result : " + randomDice;
labelScore.Text = "Score: " + score;
} }
} }
} }