Init score
This commit is contained in:
parent
f70754c461
commit
eee5a380ca
3
Form1.cs
3
Form1.cs
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user