home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form Form1
- BorderStyle = 1 'Fixed Single
- Caption = "TicTacToe"
- ClientHeight = 2415
- ClientLeft = 45
- ClientTop = 330
- ClientWidth = 1725
- ControlBox = 0 'False
- Icon = "Form1.frx":0000
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 2415
- ScaleWidth = 1725
- StartUpPosition = 2 'CenterScreen
- Begin VB.Timer Timer1
- Interval = 1
- Left = 1200
- Top = 1080
- End
- Begin VB.CommandButton Command2
- Caption = "X"
- Height = 255
- Left = 1320
- TabIndex = 2
- Top = 1920
- Width = 255
- End
- Begin VB.CommandButton Command3
- Caption = "?"
- Height = 255
- Left = 1080
- TabIndex = 1
- Top = 1920
- Width = 255
- End
- Begin VB.CommandButton Command1
- Caption = "Znova"
- Height = 255
- Left = 120
- TabIndex = 0
- Top = 1920
- Width = 975
- End
- Begin VB.Label Label2
- Caption = " (c) David Havl
- Height = 255
- Left = 0
- TabIndex = 4
- Top = 2160
- Width = 1695
- End
- Begin VB.Label Label1
- Caption = "Hraje hr
- Height = 255
- Left = 360
- TabIndex = 3
- Top = 1680
- Width = 1095
- End
- Begin VB.Line Line8
- X1 = 1560
- X2 = 1560
- Y1 = 120
- Y2 = 1560
- End
- Begin VB.Line Line7
- X1 = 120
- X2 = 1560
- Y1 = 1560
- Y2 = 1560
- End
- Begin VB.Line Line6
- X1 = 120
- X2 = 1560
- Y1 = 1080
- Y2 = 1080
- End
- Begin VB.Line Line5
- X1 = 1080
- X2 = 1080
- Y1 = 120
- Y2 = 1560
- End
- Begin VB.Line Line4
- X1 = 120
- X2 = 1560
- Y1 = 120
- Y2 = 120
- End
- Begin VB.Line Line3
- X1 = 120
- X2 = 120
- Y1 = 120
- Y2 = 1560
- End
- Begin VB.Line Line2
- X1 = 120
- X2 = 1560
- Y1 = 600
- Y2 = 600
- End
- Begin VB.Line Line1
- X1 = 600
- X2 = 600
- Y1 = 120
- Y2 = 1560
- End
- Begin VB.Image Image9
- Height = 480
- Left = 1080
- Top = 1080
- Width = 480
- End
- Begin VB.Image Image8
- Height = 480
- Left = 600
- Top = 1080
- Width = 480
- End
- Begin VB.Image Image7
- Height = 480
- Left = 120
- Top = 1080
- Width = 480
- End
- Begin VB.Image Image6
- Height = 480
- Left = 1080
- Top = 600
- Width = 480
- End
- Begin VB.Image Image5
- Height = 480
- Left = 600
- Top = 600
- Width = 480
- End
- Begin VB.Image Image4
- Height = 480
- Left = 120
- Top = 600
- Width = 480
- End
- Begin VB.Image Image3
- Height = 480
- Left = 1080
- Top = 120
- Width = 480
- End
- Begin VB.Image Image2
- Height = 480
- Left = 600
- Top = 120
- Width = 480
- End
- Begin VB.Image Image1
- Height = 480
- Left = 120
- Top = 120
- Width = 480
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub Command1_Click()
- Image1.Picture = LoadPicture(None)
- Image2.Picture = LoadPicture(None)
- Image3.Picture = LoadPicture(None)
- Image4.Picture = LoadPicture(None)
- Image5.Picture = LoadPicture(None)
- Image6.Picture = LoadPicture(None)
- Image7.Picture = LoadPicture(None)
- Image8.Picture = LoadPicture(None)
- Image9.Picture = LoadPicture(None)
- Label1.Caption = "Hraje hr
- End Sub
- Private Sub Command2_Click()
- End Sub
- Private Sub Command3_Click()
- MsgBox "(c) David Havl
- ek 9.1.2000 Tento program je FREEWARE !"
- MsgBox "Autor neru
- kody zp
- soben
- m tohoto softwaru!"
- End Sub
- Private Sub Form_Load()
- Image1.Picture = LoadPicture(None)
- Image2.Picture = LoadPicture(None)
- Image3.Picture = LoadPicture(None)
- Image4.Picture = LoadPicture(None)
- Image5.Picture = LoadPicture(None)
- Image6.Picture = LoadPicture(None)
- Image7.Picture = LoadPicture(None)
- Image8.Picture = LoadPicture(None)
- Image9.Picture = LoadPicture(None)
- End Sub
- Private Sub Image1_Click()
- If Image1.Picture = Form2.Image1.Picture Then GoTo k
- If Image1.Picture = Form2.Image2.Picture Then GoTo k
- If Label1.Caption = "Hraje hr
- .1" Then Image1.Picture = Form2.Image1.Picture: Label1.Caption = "Hraje hr
- .2": GoTo k
- If Label1.Caption = "Hraje hr
- .2" Then Image1.Picture = Form2.Image2.Picture: Label1.Caption = "Hraje hr
- .1": GoTo k
- End Sub
- Private Sub Image2_Click()
- If Image2.Picture = Form2.Image1.Picture Then GoTo k
- If Image2.Picture = Form2.Image2.Picture Then GoTo k
- If Label1.Caption = "Hraje hr
- .1" Then Image2.Picture = Form2.Image1.Picture: Label1.Caption = "Hraje hr
- .2": GoTo k
- If Label1.Caption = "Hraje hr
- .2" Then Image2.Picture = Form2.Image2.Picture: Label1.Caption = "Hraje hr
- .1": GoTo k
- End Sub
- Private Sub Image3_Click()
- If Image3.Picture = Form2.Image1.Picture Then GoTo k
- If Image3.Picture = Form2.Image2.Picture Then GoTo k
- If Label1.Caption = "Hraje hr
- .1" Then Image3.Picture = Form2.Image1.Picture: Label1.Caption = "Hraje hr
- .2": GoTo k
- If Label1.Caption = "Hraje hr
- .2" Then Image3.Picture = Form2.Image2.Picture: Label1.Caption = "Hraje hr
- .1": GoTo k
- End Sub
- Private Sub Image4_Click()
- If Image4.Picture = Form2.Image1.Picture Then GoTo k
- If Image4.Picture = Form2.Image2.Picture Then GoTo k
- If Label1.Caption = "Hraje hr
- .1" Then Image4.Picture = Form2.Image1.Picture: Label1.Caption = "Hraje hr
- .2": GoTo k
- If Label1.Caption = "Hraje hr
- .2" Then Image4.Picture = Form2.Image2.Picture: Label1.Caption = "Hraje hr
- .1": GoTo k
- End Sub
- Private Sub Image5_Click()
- If Image5.Picture = Form2.Image1.Picture Then GoTo k
- If Image5.Picture = Form2.Image2.Picture Then GoTo k
- If Label1.Caption = "Hraje hr
- .1" Then Image5.Picture = Form2.Image1.Picture: Label1.Caption = "Hraje hr
- .2": GoTo k
- If Label1.Caption = "Hraje hr
- .2" Then Image5.Picture = Form2.Image2.Picture: Label1.Caption = "Hraje hr
- .1": GoTo k
- End Sub
- Private Sub Image6_Click()
- If Image6.Picture = Form2.Image1.Picture Then GoTo k
- If Image6.Picture = Form2.Image2.Picture Then GoTo k
- If Label1.Caption = "Hraje hr
- .1" Then Image6.Picture = Form2.Image1.Picture: Label1.Caption = "Hraje hr
- .2": GoTo k
- If Label1.Caption = "Hraje hr
- .2" Then Image6.Picture = Form2.Image2.Picture: Label1.Caption = "Hraje hr
- .1": GoTo k
- End Sub
- Private Sub Image7_Click()
- If Image7.Picture = Form2.Image1.Picture Then GoTo k
- If Image7.Picture = Form2.Image2.Picture Then GoTo k
- If Label1.Caption = "Hraje hr
- .1" Then Image7.Picture = Form2.Image1.Picture: Label1.Caption = "Hraje hr
- .2": GoTo k
- If Label1.Caption = "Hraje hr
- .2" Then Image7.Picture = Form2.Image2.Picture: Label1.Caption = "Hraje hr
- .1": GoTo k
- End Sub
- Private Sub Image8_Click()
- If Image8.Picture = Form2.Image1.Picture Then GoTo k
- If Image8.Picture = Form2.Image2.Picture Then GoTo k
- If Label1.Caption = "Hraje hr
- .1" Then Image8.Picture = Form2.Image1.Picture: Label1.Caption = "Hraje hr
- .2": GoTo k
- If Label1.Caption = "Hraje hr
- .2" Then Image8.Picture = Form2.Image2.Picture: Label1.Caption = "Hraje hr
- .1": GoTo k
- End Sub
- Private Sub Image9_Click()
- If Image9.Picture = Form2.Image1.Picture Then GoTo k
- If Image9.Picture = Form2.Image2.Picture Then GoTo k
- If Label1.Caption = "Hraje hr
- .1" Then Image9.Picture = Form2.Image1.Picture: Label1.Caption = "Hraje hr
- .2": GoTo k
- If Label1.Caption = "Hraje hr
- .2" Then Image9.Picture = Form2.Image2.Picture: Label1.Caption = "Hraje hr
- .1": GoTo k
- End Sub
- Private Sub Timer1_Timer()
- If Image1.Picture = Form2.Image1.Picture And Image4.Picture = Form2.Image1.Picture And Image7.Picture = Form2.Image1.Picture Then MsgBox "Vyhr
- slo 1": GoTo k
- If Image1.Picture = Form2.Image2.Picture And Image4.Picture = Form2.Image2.Picture And Image7.Picture = Form2.Image2.Picture Then MsgBox "Vyhr
- slo 2": GoTo k
- If Image2.Picture = Form2.Image1.Picture And Image5.Picture = Form2.Image1.Picture And Image8.Picture = Form2.Image1.Picture Then MsgBox "Vyhr
- slo 1": GoTo k
- If Image2.Picture = Form2.Image2.Picture And Image5.Picture = Form2.Image2.Picture And Image8.Picture = Form2.Image2.Picture Then MsgBox "Vyhr
- slo 2": GoTo k
- If Image3.Picture = Form2.Image1.Picture And Image6.Picture = Form2.Image1.Picture And Image9.Picture = Form2.Image1.Picture Then MsgBox "Vyhr
- slo 1": GoTo k
- If Image3.Picture = Form2.Image2.Picture And Image6.Picture = Form2.Image2.Picture And Image9.Picture = Form2.Image2.Picture Then MsgBox "Vyhr
- slo 2": GoTo k
- If Image1.Picture = Form2.Image1.Picture And Image2.Picture = Form2.Image1.Picture And Image3.Picture = Form2.Image1.Picture Then MsgBox "Vyhr
- slo 1": GoTo k
- If Image1.Picture = Form2.Image2.Picture And Image2.Picture = Form2.Image2.Picture And Image3.Picture = Form2.Image2.Picture Then MsgBox "Vyhr
- slo 2": GoTo k
- If Image4.Picture = Form2.Image1.Picture And Image5.Picture = Form2.Image1.Picture And Image6.Picture = Form2.Image1.Picture Then MsgBox "Vyhr
- slo 1": GoTo k
- If Image4.Picture = Form2.Image2.Picture And Image5.Picture = Form2.Image2.Picture And Image6.Picture = Form2.Image2.Picture Then MsgBox "Vyhr
- slo 2": GoTo k
- If Image7.Picture = Form2.Image1.Picture And Image8.Picture = Form2.Image1.Picture And Image9.Picture = Form2.Image1.Picture Then MsgBox "Vyhr
- slo 1": GoTo k
- If Image7.Picture = Form2.Image2.Picture And Image8.Picture = Form2.Image2.Picture And Image9.Picture = Form2.Image2.Picture Then MsgBox "Vyhr
- slo 2": GoTo k
- If Image1.Picture = Form2.Image1.Picture And Image5.Picture = Form2.Image1.Picture And Image9.Picture = Form2.Image1.Picture Then MsgBox "Vyhr
- slo 1": GoTo k
- If Image1.Picture = Form2.Image2.Picture And Image5.Picture = Form2.Image2.Picture And Image9.Picture = Form2.Image2.Picture Then MsgBox "Vyhr
- slo 2": GoTo k
- If Image3.Picture = Form2.Image1.Picture And Image5.Picture = Form2.Image1.Picture And Image7.Picture = Form2.Image1.Picture Then MsgBox "Vyhr
- slo 1": GoTo k
- If Image3.Picture = Form2.Image2.Picture And Image5.Picture = Form2.Image2.Picture And Image7.Picture = Form2.Image2.Picture Then MsgBox "Vyhr
- slo 2": GoTo k
- GoTo k2
- Image1.Picture = Form2.Image3.Picture
- Image2.Picture = Form2.Image3.Picture
- Image3.Picture = Form2.Image3.Picture
- Image4.Picture = Form2.Image3.Picture
- Image5.Picture = Form2.Image3.Picture
- Image6.Picture = Form2.Image3.Picture
- Image7.Picture = Form2.Image3.Picture
- Image8.Picture = Form2.Image3.Picture
- Image9.Picture = Form2.Image3.Picture
- Label1.Caption = "Click to Znova"
- If Image1.Picture = Form2.Image1.Picture Or Image1.Picture = Form2.Image2.Picture Then t = t + 1
- If Image2.Picture = Form2.Image1.Picture Or Image2.Picture = Form2.Image2.Picture Then t = t + 1
- If Image3.Picture = Form2.Image1.Picture Or Image3.Picture = Form2.Image2.Picture Then t = t + 1
- If Image4.Picture = Form2.Image1.Picture Or Image4.Picture = Form2.Image2.Picture Then t = t + 1
- If Image5.Picture = Form2.Image1.Picture Or Image5.Picture = Form2.Image2.Picture Then t = t + 1
- If Image6.Picture = Form2.Image1.Picture Or Image6.Picture = Form2.Image2.Picture Then t = t + 1
- If Image7.Picture = Form2.Image1.Picture Or Image7.Picture = Form2.Image2.Picture Then t = t + 1
- If Image8.Picture = Form2.Image1.Picture Or Image8.Picture = Form2.Image2.Picture Then t = t + 1
- If Image9.Picture = Form2.Image1.Picture Or Image9.Picture = Form2.Image2.Picture Then t = t + 1
- If t = 9 Then MsgBox "Nikdo nevyhr
- l !": t = 0: GoTo k
- End Sub
-