Option Strict On
Public Class Form1
Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
ReloadGame()
RollTheDice()
End Sub
Private Sub Button_Clicks(sender As System.Object, e As System.EventArgs) Handles Button1.Click, Button2.Click, Button3.Click, _
Button4.Click, Button5.Click, Button6.Click, _
Button7.Click, Button8.Click, Button9.Click
Dim Btn As Button = DirectCast(sender, Button)
If Not String.IsNullOrEmpty(Btn.Text) Then Exit Sub
Btn.Text = Label1.Text.ElementAt(13)
Dim CurrentMove As New PlayerMove With {.XO_Player = Label1.Text.ElementAt(13), .ClickNum = Btn.Tag.ToString}
XO.PMove = CurrentMove
Select Case Label1.Text.ElementAt(13)
Case "X"c
Label1.Text = "Player Turn: O"
Case "O"c
Label1.Text = "Player Turn: X"
End Select
End Sub
End Class