Professional Documents
Culture Documents
Seminarski IGRICA
Seminarski IGRICA
BANJA LUKA
STUDENT:
xxxxxxxxxxxx
PROFESOR:
doc.dr Tihomir Latinovi
Zadatak:
Zadatak ovoga seminarskog rada je da se ve postojei kod za igricu
proirimo djelom koda za praenje rezultata.
KOD ZA IGRICU
Option Explicit
Private Sub cmdReset_Click()
Dim square As Byte
For square = 0 To 8
lblBoard(square).Caption = ""
lblBoard(square).BackColor = &H80000005 ' Reset to white
lblBoard(square).ForeColor = &H80000008 ' Reset to black
Next square
' Reset the status bar
StatusBar.Panels(1).Text = "Turn: Player1"
StatusBar.Panels(2).Text = "Move: 1"
' Reset the symbol labels
lblX.Enabled = True
lblO.Enabled = False
' Hide the reset button once again
cmdReset.Visible = False
End Sub
Private Sub Command1_Click()
End
End Sub
Private Sub Form_Resize()
fraBoard.Left = (frmMain.Width / 2) - (fraBoard.Width / 2)
cmdReset.Left = frmMain.Width - 1600
End Sub