ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

¨D±Ïvb

¨D±Ïvb

§Ú·Q§@¤@­Óvb°O¾Ð¹CÀ¸~¥i¬O¶]¤£¥X¨Ó......
¥i¥H½Ð°Ý¦³½Ö¥i¥HÀ°§Ú¬Ý¬Ý§Úªº­ì©l½X­þ¸Ì¿ù~~(§Ú¬Oªì¾ÇªÌ

Dim flag As Boolean
Dim pair As Integer
Dim start As Single
Dim temp As Integer
Dim press1 As ImageList, press As ImageList
Dim ²Å¸¹ As ImageList
Dim «ö¶s As ImageList
Dim §¹¦¨¹ï¼Æ As Integer, ¦¸¼Æ As Integer

Private Sub cmd¶}©l_click()
Dim i As Integer

Timer1.Interval = 0
start = Timer
Timer1.Interval = 100
§¹¦¨¹ï¼Æ = 0
¦¸¼Æ = 0
For i = 0 To 8
«ö¶s(i).Enabled = True
«ö¶s(i).Caption = ""
Next i

End Sub

Private Sub timer1_timer()
Lbl®É¶¡.Caption = "®É¶¡:" + Str$(Timer - start) + "¬í"
End Sub
Private Sub «ö¶s_click(index As Integer)
Dim i
¦¸¼Æ = ¦¸¼Æ + 1
    Lbl¦¸¼Æ = "¦¸¼Æ:" + Str$(¦¸¼Æ)
    pair = pair + 1
   
    If pair = 2 Then
    pair = 0
    Press2 = 0
    If press1 <> Press2 Then
    P2 = ²Å¸¹(index)
    flag = True
    «ö¶s(Press2).Caption = P2
    If P2 = P1 Then
    §¹¦¨¹ï¼Æ = §¹¦¨¹ï¼Æ + 1
    «ö¶s(press1).Enabled = False
    «ö¶s(Press2).Enabled = False
    flag = False
    If §¹¦¨¹ï¼Æ = 8 Then Timer1.Interval = 0
    End If
    Else
      ¦¸¼Æ = ¦¸¼Æ + 1
      pair = 1
    End If
Else
   If flag = True Then
     «ö¶s(press1).Caption = ""
     «ö¶s(Press2).Caption = ""
     flag = False
   End If
   
   press1 = index
   P1 = ²Å¸¹(index)
   «ö¶s(press1).Caption = P1
   
   End If
   
End Sub

        ÀR«ä¦Û¦b : §g¤l¥ß«í§Ó¡A¤p¤H«í¥ß§Ó¡C
ªð¦^¦Cªí ¤W¤@¥DÃD