You are on page 1of 1

DANILO G. NICOLAS JR. LblCtr.Caption = LblCtr.

Caption + 1 Private Sub Timer1_Timer()


JOHN PAUL ANCHORIZ ElseIf OptPap = True And x = 2 Then Lbl1.Caption = Int(3 * Rnd()) + 1
LblMessage.Caption = "YOU LOSE" Dim x
Jack ‘n Poy LblCtr1.Caption = LblCtr1.Caption + 1 x = Val(Lbl1.Caption)
ElseIf OptPap = True And x = 3 Then
LblMessage.Caption = "FAIR" If x = 1 Then
End If BStone.Visible = True
BSci.Visible = False
If LblCtr.Caption = 5 Then BPap.Visible = False
MsgBox "WINNER" ElseIf x = 2 Then
LblMessage.Caption = "" BStone.Visible = False
LblCtr.Caption = 0 BSci.Visible = True
LblCtr1.Caption = 0 BPap.Visible = False
ElseIf LblCtr1.Caption = 5 Then ElseIf x = 3 Then
MsgBox "GAME OVER" BStone.Visible = False
LblMessage.Caption = "" BSci.Visible = False
LblCtr.Caption = 0 BPap.Visible = True
Private Sub CmdExit_Click() LblCtr1.Caption = 0 End If
End
End Sub End If End Sub
End Sub
Private Sub CmdPlay_Click()
Timer1.Enabled = True Private Sub Form_Load()
LblMessage.Caption = "" LblCtr.Caption = 0
End Sub LblCtr1.Caption = 0
End Sub
Private Sub CmdStop_Click()
Timer1.Enabled = False Private Sub OptPap_Click()
Dim x If OptPap = True Then
x = Val(Lbl1.Caption) AStone.Visible = False
ASci.Visible = False
If OptStone = True And x = 1 Then APap.Visible = True
LblMessage.Caption = "FAIR" End If
ElseIf OptStone = True And x = 2 Then End Sub
LblMessage.Caption = "YOU WIN"
LblCtr.Caption = LblCtr.Caption + 1 Private Sub OptSci_Click()
ElseIf OptStone = True And x = 3 Then If OptSci = True Then
LblMessage.Caption = "YOU LOSE" AStone.Visible = False
LblCtr1.Caption = LblCtr1.Caption + 1 ASci.Visible = True
ElseIf OptSci = True And x = 1 Then APap.Visible = False
LblMessage.Caption = "YOU LOSE" End If
LblCtr1.Caption = LblCtr1.Caption + 1 End Sub
ElseIf OptSci = True And x = 2 Then
LblMessage.Caption = "FAIR" Private Sub OptStone_Click()
ElseIf OptSci = True And x = 3 Then If OptStone = True Then
LblMessage.Caption = "YOU WIN" AStone.Visible = True
LblCtr.Caption = LblCtr.Caption + 1 ASci.Visible = False
ElseIf OptPap = True And x = 1 Then APap.Visible = False
LblMessage.Caption = "YOU WIN" End If
End Sub

You might also like