Лабораторная работа: Greating game on visual basic with multiplayer system
Win (0) = 3 * n
Win (1) = 3 * n + 1
Win (2) = 3 * n + 2
End If
sample = sample + 1
Next n
For n = 0 To 2
Test_Result (sample) = a (n) + a (n + 3) + a (n + 6)
If Test_Result (sample) = 3 Then
Win (0) = n
Win (1) = n + 3
Win (2) = n + 6
End If
sample = sample + 1
Next n
Test_Result (sample) = a (0) + a (4) + a (8)
If Test_Result (sample) = 3 Then
Win (0) = 0
Win (1) = 4
Win (2) = 8
End If
sample = sample + 1
Test_Result (sample) = a (6) + a (4) + a (2)
If Test_Result (sample) = 3 Then
Win (0) = 6
Win (1) = 4
Win (2) = 2
End If
sample = sample + 1