Gamble: Higher or Lower?
Page 1 of 1 • Share •
Gamble: Higher or Lower?
I guess some people know this little game...
You may need to alter the label name, for example, instead of Label1.Text, MyLabel.Text
- Code:
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim spin As String = Int(Rnd() * 12)
Label9.Text = Label1.Text
Label1.Text = spin
If Label9.Text > Label1.Text Then
Label6.Text += Int(1)
Else
Label5.Text += Int(1)
End If
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim spin As String = Int(Rnd() * 12)
Label9.Text = Label1.Text
Label1.Text = spin
If Label9.Text < Label1.Text Then
Label6.Text += Int(1)
Else
Label5.Text += Int(1)
End If
End Sub
End Class
You may need to alter the label name, for example, instead of Label1.Text, MyLabel.Text

Robin- Moderator

- Number of posts: 11
Age: 18
Location: Holland
Registration date: 2008-08-31
Topic Moved ...
This topic shouldn't be in Game Development, if it was a complete how to on making a game, it would be in tutorials, you should put all the program files up for download.
MOVED TO CODE VAULT
MOVED TO CODE VAULT
conorsteel- Admin

- Number of posts: 13
Age: 16
Location: Kilmarnock, Scotland
Registration date: 2008-08-31

Permissions of this forum:
You cannot reply to topics in this forum






