Лабораторная работа: Greating game on visual basic with multiplayer system
first_turn = 1
End Sub
Private Sub Computer_Wins ()
Dim s As Integer
For s = 0 To 8
Layer_A (s). Enabled = False
Next s
Begin = True
If multiplayermode = True And usermode = "host" Then
If sw = True Then 'Checks for Whos Turn and update Host or client
Out_Box. Caption = opponentsname & " Won!"
opponentsscore = opponentsscore + 1
Else
Out_Box. Caption = profilename & " Won!"
profilenamescore = profilenamescore + 1
End If
End If
If multiplayermode = True And usermode = "client" Then
If sw = True Then
Out_Box. Caption = profilename & " Won!"
profilenamescore = profilenamescore + 1
Else
Out_Box. Caption = opponentsname & " Won!"
opponentsscore = opponentsscore + 1
End If
End If
If multiplayermode = False Then 'Single Player updating
If sw = True Then
Out_Box. Caption = "O Won!!!!"