guess-the-card/Form1.cs

20 lines
459 B
C#
Raw Normal View History

2026-04-11 10:59:54 +07:00
namespace GuessTheCard
{
public partial class Form1 : Form
{
2026-04-11 11:47:26 +07:00
private int score = 0;
2026-04-11 12:01:34 +07:00
private int previousDice;
private Random random = new Random();
2026-04-11 11:47:26 +07:00
2026-04-11 10:59:54 +07:00
public Form1()
{
InitializeComponent();
2026-04-11 11:40:45 +07:00
int randomDice = random.Next(1, 7);
2026-04-11 12:01:34 +07:00
previousDice = randomDice;
2026-04-11 11:40:45 +07:00
labelCard.Text = "Result : " + randomDice;
2026-04-11 11:47:26 +07:00
labelScore.Text = "Score: " + score;
2026-04-11 10:59:54 +07:00
}
}
}