home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 1_2002.ISO / Data / Zips / CODE_UPLOAD6400632000.psc / FrmMain.frm (.txt) next >
Encoding:
Visual Basic Form  |  2000-06-04  |  48.3 KB  |  1,579 lines

  1. VERSION 5.00
  2. Begin VB.Form FrmMain 
  3.    Caption         =   "Checkers - The A.I. Game"
  4.    ClientHeight    =   8535
  5.    ClientLeft      =   -2040
  6.    ClientTop       =   450
  7.    ClientWidth     =   12210
  8.    Icon            =   "FrmMain.frx":0000
  9.    LinkTopic       =   "Form1"
  10.    ScaleHeight     =   8535
  11.    ScaleWidth      =   12210
  12.    StartUpPosition =   3  'Windows Default
  13.    Begin VB.CommandButton Command1 
  14.       Caption         =   "Go Back"
  15.       Height          =   615
  16.       Left            =   9000
  17.       TabIndex        =   87
  18.       Top             =   4200
  19.       Width           =   2415
  20.    End
  21.    Begin VB.CommandButton cmdNewGame 
  22.       Caption         =   "Start New Game"
  23.       Height          =   615
  24.       Left            =   8520
  25.       TabIndex        =   86
  26.       Top             =   2280
  27.       Width           =   1455
  28.    End
  29.    Begin VB.CommandButton cmdSave 
  30.       Caption         =   "Load or Save"
  31.       Height          =   615
  32.       Left            =   10320
  33.       TabIndex        =   78
  34.       Top             =   2280
  35.       Width           =   1575
  36.    End
  37.    Begin VB.PictureBox PicWaiting 
  38.       AutoSize        =   -1  'True
  39.       BorderStyle     =   0  'None
  40.       Height          =   480
  41.       Left            =   11280
  42.       Picture         =   "FrmMain.frx":0442
  43.       ScaleHeight     =   480
  44.       ScaleWidth      =   480
  45.       TabIndex        =   77
  46.       Top             =   7320
  47.       Visible         =   0   'False
  48.       Width           =   480
  49.    End
  50.    Begin VB.PictureBox Picture1 
  51.       AutoSize        =   -1  'True
  52.       BorderStyle     =   0  'None
  53.       Height          =   1005
  54.       Index           =   6
  55.       Left            =   8760
  56.       ScaleHeight     =   1005
  57.       ScaleWidth      =   1005
  58.       TabIndex        =   76
  59.       Top             =   8760
  60.       Visible         =   0   'False
  61.       Width           =   1005
  62.    End
  63.    Begin VB.PictureBox Picture1 
  64.       AutoSize        =   -1  'True
  65.       BorderStyle     =   0  'None
  66.       Height          =   975
  67.       Index           =   5
  68.       Left            =   12480
  69.       Picture         =   "FrmMain.frx":0B84
  70.       ScaleHeight     =   975
  71.       ScaleWidth      =   975
  72.       TabIndex        =   75
  73.       Top             =   8640
  74.       Visible         =   0   'False
  75.       Width           =   975
  76.    End
  77.    Begin VB.PictureBox Picture1 
  78.       AutoSize        =   -1  'True
  79.       BorderStyle     =   0  'None
  80.       Height          =   975
  81.       Index           =   2
  82.       Left            =   11640
  83.       Picture         =   "FrmMain.frx":3D8A
  84.       ScaleHeight     =   975
  85.       ScaleWidth      =   975
  86.       TabIndex        =   74
  87.       Top             =   9000
  88.       Visible         =   0   'False
  89.       Width           =   975
  90.    End
  91.    Begin VB.PictureBox Picture1 
  92.       AutoSize        =   -1  'True
  93.       BorderStyle     =   0  'None
  94.       Height          =   975
  95.       Index           =   4
  96.       Left            =   9600
  97.       Picture         =   "FrmMain.frx":6F90
  98.       ScaleHeight     =   975
  99.       ScaleWidth      =   975
  100.       TabIndex        =   73
  101.       Top             =   9120
  102.       Visible         =   0   'False
  103.       Width           =   975
  104.    End
  105.    Begin VB.PictureBox Picture1 
  106.       AutoSize        =   -1  'True
  107.       BorderStyle     =   0  'None
  108.       Height          =   975
  109.       Index           =   3
  110.       Left            =   10800
  111.       Picture         =   "FrmMain.frx":A196
  112.       ScaleHeight     =   975
  113.       ScaleWidth      =   975
  114.       TabIndex        =   72
  115.       Top             =   9120
  116.       Visible         =   0   'False
  117.       Width           =   975
  118.    End
  119.    Begin VB.PictureBox Picture1 
  120.       AutoSize        =   -1  'True
  121.       BorderStyle     =   0  'None
  122.       Height          =   975
  123.       Index           =   1
  124.       Left            =   11040
  125.       Picture         =   "FrmMain.frx":D39C
  126.       ScaleHeight     =   975
  127.       ScaleWidth      =   975
  128.       TabIndex        =   71
  129.       Top             =   8640
  130.       Visible         =   0   'False
  131.       Width           =   975
  132.    End
  133.    Begin VB.PictureBox Picture1 
  134.       AutoSize        =   -1  'True
  135.       BorderStyle     =   0  'None
  136.       Height          =   1005
  137.       Index           =   0
  138.       Left            =   10080
  139.       ScaleHeight     =   1005
  140.       ScaleWidth      =   1005
  141.       TabIndex        =   70
  142.       Top             =   8400
  143.       Visible         =   0   'False
  144.       Width           =   1005
  145.    End
  146.    Begin VB.PictureBox Grid1 
  147.       BackColor       =   &H00FFFFFF&
  148.       BorderStyle     =   0  'None
  149.       Height          =   975
  150.       Index           =   63
  151.       Left            =   7080
  152.       ScaleHeight     =   975
  153.       ScaleWidth      =   975
  154.       TabIndex        =   63
  155.       Top             =   7200
  156.       Width           =   975
  157.    End
  158.    Begin VB.PictureBox Grid1 
  159.       BackColor       =   &H00000000&
  160.       BorderStyle     =   0  'None
  161.       Height          =   975
  162.       Index           =   62
  163.       Left            =   6120
  164.       ScaleHeight     =   975
  165.       ScaleWidth      =   975
  166.       TabIndex        =   62
  167.       Top             =   7200
  168.       Width           =   975
  169.    End
  170.    Begin VB.PictureBox Grid1 
  171.       BackColor       =   &H00FFFFFF&
  172.       BorderStyle     =   0  'None
  173.       Height          =   975
  174.       Index           =   61
  175.       Left            =   5160
  176.       ScaleHeight     =   975
  177.       ScaleWidth      =   975
  178.       TabIndex        =   61
  179.       Top             =   7200
  180.       Width           =   975
  181.    End
  182.    Begin VB.PictureBox Grid1 
  183.       BackColor       =   &H00000000&
  184.       BorderStyle     =   0  'None
  185.       Height          =   975
  186.       Index           =   60
  187.       Left            =   4200
  188.       ScaleHeight     =   975
  189.       ScaleWidth      =   975
  190.       TabIndex        =   60
  191.       Top             =   7200
  192.       Width           =   975
  193.    End
  194.    Begin VB.PictureBox Grid1 
  195.       BackColor       =   &H00FFFFFF&
  196.       BorderStyle     =   0  'None
  197.       Height          =   975
  198.       Index           =   59
  199.       Left            =   3240
  200.       ScaleHeight     =   975
  201.       ScaleWidth      =   975
  202.       TabIndex        =   59
  203.       Top             =   7200
  204.       Width           =   975
  205.    End
  206.    Begin VB.PictureBox Grid1 
  207.       BackColor       =   &H00000000&
  208.       BorderStyle     =   0  'None
  209.       Height          =   975
  210.       Index           =   58
  211.       Left            =   2280
  212.       ScaleHeight     =   975
  213.       ScaleWidth      =   975
  214.       TabIndex        =   58
  215.       Top             =   7200
  216.       Width           =   975
  217.    End
  218.    Begin VB.PictureBox Grid1 
  219.       BackColor       =   &H00FFFFFF&
  220.       BorderStyle     =   0  'None
  221.       Height          =   975
  222.       Index           =   57
  223.       Left            =   1320
  224.       ScaleHeight     =   975
  225.       ScaleWidth      =   975
  226.       TabIndex        =   57
  227.       Top             =   7200
  228.       Width           =   975
  229.    End
  230.    Begin VB.PictureBox Grid1 
  231.       BackColor       =   &H00000000&
  232.       BorderStyle     =   0  'None
  233.       Height          =   975
  234.       Index           =   56
  235.       Left            =   360
  236.       ScaleHeight     =   975
  237.       ScaleWidth      =   975
  238.       TabIndex        =   56
  239.       Top             =   7200
  240.       Width           =   975
  241.    End
  242.    Begin VB.PictureBox Grid1 
  243.       BackColor       =   &H00000000&
  244.       BorderStyle     =   0  'None
  245.       Height          =   975
  246.       Index           =   55
  247.       Left            =   7080
  248.       ScaleHeight     =   975
  249.       ScaleWidth      =   975
  250.       TabIndex        =   55
  251.       Top             =   6240
  252.       Width           =   975
  253.    End
  254.    Begin VB.PictureBox Grid1 
  255.       BackColor       =   &H00FFFFFF&
  256.       BorderStyle     =   0  'None
  257.       Height          =   975
  258.       Index           =   54
  259.       Left            =   6120
  260.       ScaleHeight     =   975
  261.       ScaleWidth      =   975
  262.       TabIndex        =   54
  263.       Top             =   6240
  264.       Width           =   975
  265.    End
  266.    Begin VB.PictureBox Grid1 
  267.       BackColor       =   &H00000000&
  268.       BorderStyle     =   0  'None
  269.       Height          =   975
  270.       Index           =   53
  271.       Left            =   5160
  272.       ScaleHeight     =   975
  273.       ScaleWidth      =   975
  274.       TabIndex        =   53
  275.       Top             =   6240
  276.       Width           =   975
  277.    End
  278.    Begin VB.PictureBox Grid1 
  279.       BackColor       =   &H00FFFFFF&
  280.       BorderStyle     =   0  'None
  281.       Height          =   975
  282.       Index           =   52
  283.       Left            =   4200
  284.       ScaleHeight     =   975
  285.       ScaleWidth      =   975
  286.       TabIndex        =   52
  287.       Top             =   6240
  288.       Width           =   975
  289.    End
  290.    Begin VB.PictureBox Grid1 
  291.       BackColor       =   &H00000000&
  292.       BorderStyle     =   0  'None
  293.       Height          =   975
  294.       Index           =   51
  295.       Left            =   3240
  296.       ScaleHeight     =   975
  297.       ScaleWidth      =   975
  298.       TabIndex        =   51
  299.       Top             =   6240
  300.       Width           =   975
  301.    End
  302.    Begin VB.PictureBox Grid1 
  303.       BackColor       =   &H00FFFFFF&
  304.       BorderStyle     =   0  'None
  305.       Height          =   975
  306.       Index           =   50
  307.       Left            =   2280
  308.       ScaleHeight     =   975
  309.       ScaleWidth      =   975
  310.       TabIndex        =   50
  311.       Top             =   6240
  312.       Width           =   975
  313.    End
  314.    Begin VB.PictureBox Grid1 
  315.       BackColor       =   &H00000000&
  316.       BorderStyle     =   0  'None
  317.       Height          =   975
  318.       Index           =   49
  319.       Left            =   1320
  320.       ScaleHeight     =   975
  321.       ScaleWidth      =   975
  322.       TabIndex        =   49
  323.       Top             =   6240
  324.       Width           =   975
  325.    End
  326.    Begin VB.PictureBox Grid1 
  327.       BackColor       =   &H00FFFFFF&
  328.       BorderStyle     =   0  'None
  329.       Height          =   975
  330.       Index           =   48
  331.       Left            =   360
  332.       ScaleHeight     =   975
  333.       ScaleWidth      =   975
  334.       TabIndex        =   48
  335.       Top             =   6240
  336.       Width           =   975
  337.    End
  338.    Begin VB.PictureBox Grid1 
  339.       BackColor       =   &H00FFFFFF&
  340.       BorderStyle     =   0  'None
  341.       Height          =   975
  342.       Index           =   47
  343.       Left            =   7080
  344.       ScaleHeight     =   975
  345.       ScaleWidth      =   975
  346.       TabIndex        =   47
  347.       Top             =   5280
  348.       Width           =   975
  349.    End
  350.    Begin VB.PictureBox Grid1 
  351.       BackColor       =   &H00000000&
  352.       BorderStyle     =   0  'None
  353.       Height          =   975
  354.       Index           =   46
  355.       Left            =   6120
  356.       ScaleHeight     =   975
  357.       ScaleWidth      =   975
  358.       TabIndex        =   46
  359.       Top             =   5280
  360.       Width           =   975
  361.    End
  362.    Begin VB.PictureBox Grid1 
  363.       BackColor       =   &H00FFFFFF&
  364.       BorderStyle     =   0  'None
  365.       Height          =   975
  366.       Index           =   45
  367.       Left            =   5160
  368.       ScaleHeight     =   975
  369.       ScaleWidth      =   975
  370.       TabIndex        =   45
  371.       Top             =   5280
  372.       Width           =   975
  373.    End
  374.    Begin VB.PictureBox Grid1 
  375.       BackColor       =   &H00000000&
  376.       BorderStyle     =   0  'None
  377.       Height          =   975
  378.       Index           =   44
  379.       Left            =   4200
  380.       ScaleHeight     =   975
  381.       ScaleWidth      =   975
  382.       TabIndex        =   44
  383.       Top             =   5280
  384.       Width           =   975
  385.    End
  386.    Begin VB.PictureBox Grid1 
  387.       BackColor       =   &H00FFFFFF&
  388.       BorderStyle     =   0  'None
  389.       Height          =   975
  390.       Index           =   43
  391.       Left            =   3240
  392.       ScaleHeight     =   975
  393.       ScaleWidth      =   975
  394.       TabIndex        =   43
  395.       Top             =   5280
  396.       Width           =   975
  397.    End
  398.    Begin VB.PictureBox Grid1 
  399.       BackColor       =   &H00000000&
  400.       BorderStyle     =   0  'None
  401.       Height          =   975
  402.       Index           =   42
  403.       Left            =   2280
  404.       ScaleHeight     =   975
  405.       ScaleWidth      =   975
  406.       TabIndex        =   42
  407.       Top             =   5280
  408.       Width           =   975
  409.    End
  410.    Begin VB.PictureBox Grid1 
  411.       BackColor       =   &H00FFFFFF&
  412.       BorderStyle     =   0  'None
  413.       Height          =   975
  414.       Index           =   41
  415.       Left            =   1320
  416.       ScaleHeight     =   975
  417.       ScaleWidth      =   975
  418.       TabIndex        =   41
  419.       Top             =   5280
  420.       Width           =   975
  421.    End
  422.    Begin VB.PictureBox Grid1 
  423.       BackColor       =   &H00000000&
  424.       BorderStyle     =   0  'None
  425.       Height          =   975
  426.       Index           =   40
  427.       Left            =   360
  428.       ScaleHeight     =   975
  429.       ScaleWidth      =   975
  430.       TabIndex        =   40
  431.       Top             =   5280
  432.       Width           =   975
  433.    End
  434.    Begin VB.PictureBox Grid1 
  435.       BackColor       =   &H00000000&
  436.       BorderStyle     =   0  'None
  437.       Height          =   975
  438.       Index           =   39
  439.       Left            =   7080
  440.       ScaleHeight     =   975
  441.       ScaleWidth      =   975
  442.       TabIndex        =   39
  443.       Top             =   4320
  444.       Width           =   975
  445.    End
  446.    Begin VB.PictureBox Grid1 
  447.       BackColor       =   &H00FFFFFF&
  448.       BorderStyle     =   0  'None
  449.       Height          =   975
  450.       Index           =   38
  451.       Left            =   6120
  452.       ScaleHeight     =   975
  453.       ScaleWidth      =   975
  454.       TabIndex        =   38
  455.       Top             =   4320
  456.       Width           =   975
  457.    End
  458.    Begin VB.PictureBox Grid1 
  459.       BackColor       =   &H00000000&
  460.       BorderStyle     =   0  'None
  461.       Height          =   975
  462.       Index           =   37
  463.       Left            =   5160
  464.       ScaleHeight     =   975
  465.       ScaleWidth      =   975
  466.       TabIndex        =   37
  467.       Top             =   4320
  468.       Width           =   975
  469.    End
  470.    Begin VB.PictureBox Grid1 
  471.       BackColor       =   &H00FFFFFF&
  472.       BorderStyle     =   0  'None
  473.       Height          =   975
  474.       Index           =   36
  475.       Left            =   4200
  476.       ScaleHeight     =   975
  477.       ScaleWidth      =   975
  478.       TabIndex        =   36
  479.       Top             =   4320
  480.       Width           =   975
  481.    End
  482.    Begin VB.PictureBox Grid1 
  483.       BackColor       =   &H00000000&
  484.       BorderStyle     =   0  'None
  485.       Height          =   975
  486.       Index           =   35
  487.       Left            =   3240
  488.       ScaleHeight     =   975
  489.       ScaleWidth      =   975
  490.       TabIndex        =   35
  491.       Top             =   4320
  492.       Width           =   975
  493.    End
  494.    Begin VB.PictureBox Grid1 
  495.       BackColor       =   &H00FFFFFF&
  496.       BorderStyle     =   0  'None
  497.       Height          =   975
  498.       Index           =   34
  499.       Left            =   2280
  500.       ScaleHeight     =   975
  501.       ScaleWidth      =   975
  502.       TabIndex        =   34
  503.       Top             =   4320
  504.       Width           =   975
  505.    End
  506.    Begin VB.PictureBox Grid1 
  507.       BackColor       =   &H00000000&
  508.       BorderStyle     =   0  'None
  509.       Height          =   975
  510.       Index           =   33
  511.       Left            =   1320
  512.       ScaleHeight     =   975
  513.       ScaleWidth      =   975
  514.       TabIndex        =   33
  515.       Top             =   4320
  516.       Width           =   975
  517.    End
  518.    Begin VB.PictureBox Grid1 
  519.       BackColor       =   &H00FFFFFF&
  520.       BorderStyle     =   0  'None
  521.       Height          =   975
  522.       Index           =   32
  523.       Left            =   360
  524.       ScaleHeight     =   975
  525.       ScaleWidth      =   975
  526.       TabIndex        =   32
  527.       Top             =   4320
  528.       Width           =   975
  529.    End
  530.    Begin VB.PictureBox Grid1 
  531.       BackColor       =   &H00FFFFFF&
  532.       BorderStyle     =   0  'None
  533.       Height          =   975
  534.       Index           =   31
  535.       Left            =   7080
  536.       ScaleHeight     =   975
  537.       ScaleWidth      =   975
  538.       TabIndex        =   31
  539.       Top             =   3360
  540.       Width           =   975
  541.    End
  542.    Begin VB.PictureBox Grid1 
  543.       BackColor       =   &H00000000&
  544.       BorderStyle     =   0  'None
  545.       Height          =   975
  546.       Index           =   30
  547.       Left            =   6120
  548.       ScaleHeight     =   975
  549.       ScaleWidth      =   975
  550.       TabIndex        =   30
  551.       Top             =   3360
  552.       Width           =   975
  553.    End
  554.    Begin VB.PictureBox Grid1 
  555.       BackColor       =   &H00FFFFFF&
  556.       BorderStyle     =   0  'None
  557.       Height          =   975
  558.       Index           =   29
  559.       Left            =   5160
  560.       ScaleHeight     =   975
  561.       ScaleWidth      =   975
  562.       TabIndex        =   29
  563.       Top             =   3360
  564.       Width           =   975
  565.    End
  566.    Begin VB.PictureBox Grid1 
  567.       BackColor       =   &H00000000&
  568.       BorderStyle     =   0  'None
  569.       Height          =   975
  570.       Index           =   28
  571.       Left            =   4200
  572.       ScaleHeight     =   975
  573.       ScaleWidth      =   975
  574.       TabIndex        =   28
  575.       Top             =   3360
  576.       Width           =   975
  577.    End
  578.    Begin VB.PictureBox Grid1 
  579.       BackColor       =   &H00FFFFFF&
  580.       BorderStyle     =   0  'None
  581.       Height          =   975
  582.       Index           =   27
  583.       Left            =   3240
  584.       ScaleHeight     =   975
  585.       ScaleWidth      =   975
  586.       TabIndex        =   27
  587.       Top             =   3360
  588.       Width           =   975
  589.    End
  590.    Begin VB.PictureBox Grid1 
  591.       BackColor       =   &H00000000&
  592.       BorderStyle     =   0  'None
  593.       Height          =   975
  594.       Index           =   26
  595.       Left            =   2280
  596.       ScaleHeight     =   975
  597.       ScaleWidth      =   975
  598.       TabIndex        =   26
  599.       Top             =   3360
  600.       Width           =   975
  601.    End
  602.    Begin VB.PictureBox Grid1 
  603.       BackColor       =   &H00FFFFFF&
  604.       BorderStyle     =   0  'None
  605.       Height          =   975
  606.       Index           =   25
  607.       Left            =   1320
  608.       ScaleHeight     =   975
  609.       ScaleWidth      =   975
  610.       TabIndex        =   25
  611.       Top             =   3360
  612.       Width           =   975
  613.    End
  614.    Begin VB.PictureBox Grid1 
  615.       BackColor       =   &H00000000&
  616.       BorderStyle     =   0  'None
  617.       Height          =   975
  618.       Index           =   24
  619.       Left            =   360
  620.       ScaleHeight     =   975
  621.       ScaleWidth      =   975
  622.       TabIndex        =   24
  623.       Top             =   3360
  624.       Width           =   975
  625.    End
  626.    Begin VB.PictureBox Grid1 
  627.       BackColor       =   &H00000000&
  628.       BorderStyle     =   0  'None
  629.       Height          =   975
  630.       Index           =   23
  631.       Left            =   7080
  632.       ScaleHeight     =   975
  633.       ScaleWidth      =   975
  634.       TabIndex        =   23
  635.       Top             =   2400
  636.       Width           =   975
  637.    End
  638.    Begin VB.PictureBox Grid1 
  639.       BackColor       =   &H00FFFFFF&
  640.       BorderStyle     =   0  'None
  641.       Height          =   975
  642.       Index           =   22
  643.       Left            =   6120
  644.       ScaleHeight     =   975
  645.       ScaleWidth      =   975
  646.       TabIndex        =   22
  647.       Top             =   2400
  648.       Width           =   975
  649.    End
  650.    Begin VB.PictureBox Grid1 
  651.       BackColor       =   &H00000000&
  652.       BorderStyle     =   0  'None
  653.       Height          =   975
  654.       Index           =   21
  655.       Left            =   5160
  656.       ScaleHeight     =   975
  657.       ScaleWidth      =   975
  658.       TabIndex        =   21
  659.       Top             =   2400
  660.       Width           =   975
  661.    End
  662.    Begin VB.PictureBox Grid1 
  663.       BackColor       =   &H00FFFFFF&
  664.       BorderStyle     =   0  'None
  665.       Height          =   975
  666.       Index           =   20
  667.       Left            =   4200
  668.       ScaleHeight     =   975
  669.       ScaleWidth      =   975
  670.       TabIndex        =   20
  671.       Top             =   2400
  672.       Width           =   975
  673.    End
  674.    Begin VB.PictureBox Grid1 
  675.       BackColor       =   &H00000000&
  676.       BorderStyle     =   0  'None
  677.       Height          =   975
  678.       Index           =   19
  679.       Left            =   3240
  680.       ScaleHeight     =   975
  681.       ScaleWidth      =   975
  682.       TabIndex        =   19
  683.       Top             =   2400
  684.       Width           =   975
  685.    End
  686.    Begin VB.PictureBox Grid1 
  687.       BackColor       =   &H00FFFFFF&
  688.       BorderStyle     =   0  'None
  689.       Height          =   975
  690.       Index           =   18
  691.       Left            =   2280
  692.       ScaleHeight     =   975
  693.       ScaleWidth      =   975
  694.       TabIndex        =   18
  695.       Top             =   2400
  696.       Width           =   975
  697.    End
  698.    Begin VB.PictureBox Grid1 
  699.       BackColor       =   &H00000000&
  700.       BorderStyle     =   0  'None
  701.       Height          =   975
  702.       Index           =   17
  703.       Left            =   1320
  704.       ScaleHeight     =   975
  705.       ScaleWidth      =   975
  706.       TabIndex        =   17
  707.       Top             =   2400
  708.       Width           =   975
  709.    End
  710.    Begin VB.PictureBox Grid1 
  711.       BackColor       =   &H00FFFFFF&
  712.       BorderStyle     =   0  'None
  713.       Height          =   975
  714.       Index           =   16
  715.       Left            =   360
  716.       ScaleHeight     =   975
  717.       ScaleWidth      =   975
  718.       TabIndex        =   16
  719.       Top             =   2400
  720.       Width           =   975
  721.    End
  722.    Begin VB.PictureBox Grid1 
  723.       BackColor       =   &H00FFFFFF&
  724.       BorderStyle     =   0  'None
  725.       Height          =   975
  726.       Index           =   15
  727.       Left            =   7080
  728.       ScaleHeight     =   975
  729.       ScaleWidth      =   975
  730.       TabIndex        =   15
  731.       Top             =   1440
  732.       Width           =   975
  733.    End
  734.    Begin VB.PictureBox Grid1 
  735.       BackColor       =   &H00000000&
  736.       BorderStyle     =   0  'None
  737.       Height          =   975
  738.       Index           =   14
  739.       Left            =   6120
  740.       ScaleHeight     =   975
  741.       ScaleWidth      =   975
  742.       TabIndex        =   14
  743.       Top             =   1440
  744.       Width           =   975
  745.    End
  746.    Begin VB.PictureBox Grid1 
  747.       BackColor       =   &H00FFFFFF&
  748.       BorderStyle     =   0  'None
  749.       Height          =   975
  750.       Index           =   13
  751.       Left            =   5160
  752.       ScaleHeight     =   975
  753.       ScaleWidth      =   975
  754.       TabIndex        =   13
  755.       Top             =   1440
  756.       Width           =   975
  757.    End
  758.    Begin VB.PictureBox Grid1 
  759.       BackColor       =   &H00000000&
  760.       BorderStyle     =   0  'None
  761.       Height          =   975
  762.       Index           =   12
  763.       Left            =   4200
  764.       ScaleHeight     =   65
  765.       ScaleMode       =   3  'Pixel
  766.       ScaleWidth      =   65
  767.       TabIndex        =   12
  768.       Top             =   1440
  769.       Width           =   975
  770.    End
  771.    Begin VB.PictureBox Grid1 
  772.       BackColor       =   &H00FFFFFF&
  773.       BorderStyle     =   0  'None
  774.       Height          =   975
  775.       Index           =   11
  776.       Left            =   3240
  777.       ScaleHeight     =   975
  778.       ScaleWidth      =   975
  779.       TabIndex        =   11
  780.       Top             =   1440
  781.       Width           =   975
  782.    End
  783.    Begin VB.PictureBox Grid1 
  784.       BackColor       =   &H00000000&
  785.       BorderStyle     =   0  'None
  786.       Height          =   975
  787.       Index           =   10
  788.       Left            =   2280
  789.       ScaleHeight     =   975
  790.       ScaleWidth      =   975
  791.       TabIndex        =   10
  792.       Top             =   1440
  793.       Width           =   975
  794.    End
  795.    Begin VB.PictureBox Grid1 
  796.       BackColor       =   &H00FFFFFF&
  797.       BorderStyle     =   0  'None
  798.       Height          =   975
  799.       Index           =   9
  800.       Left            =   1320
  801.       ScaleHeight     =   975
  802.       ScaleWidth      =   975
  803.       TabIndex        =   9
  804.       Top             =   1440
  805.       Width           =   975
  806.    End
  807.    Begin VB.PictureBox Grid1 
  808.       BackColor       =   &H00000000&
  809.       BorderStyle     =   0  'None
  810.       Height          =   975
  811.       Index           =   8
  812.       Left            =   360
  813.       ScaleHeight     =   975
  814.       ScaleWidth      =   975
  815.       TabIndex        =   8
  816.       Top             =   1440
  817.       Width           =   975
  818.    End
  819.    Begin VB.PictureBox Grid1 
  820.       BackColor       =   &H00000000&
  821.       BorderStyle     =   0  'None
  822.       Height          =   975
  823.       Index           =   7
  824.       Left            =   7080
  825.       ScaleHeight     =   975
  826.       ScaleWidth      =   975
  827.       TabIndex        =   7
  828.       Top             =   480
  829.       Width           =   975
  830.    End
  831.    Begin VB.PictureBox Grid1 
  832.       BackColor       =   &H00FFFFFF&
  833.       BorderStyle     =   0  'None
  834.       Height          =   975
  835.       Index           =   6
  836.       Left            =   6120
  837.       ScaleHeight     =   975
  838.       ScaleWidth      =   975
  839.       TabIndex        =   6
  840.       Top             =   480
  841.       Width           =   975
  842.    End
  843.    Begin VB.PictureBox Grid1 
  844.       BackColor       =   &H00000000&
  845.       BorderStyle     =   0  'None
  846.       Height          =   975
  847.       Index           =   5
  848.       Left            =   5160
  849.       ScaleHeight     =   975
  850.       ScaleWidth      =   975
  851.       TabIndex        =   5
  852.       Top             =   480
  853.       Width           =   975
  854.    End
  855.    Begin VB.PictureBox Grid1 
  856.       BackColor       =   &H00FFFFFF&
  857.       BorderStyle     =   0  'None
  858.       Height          =   975
  859.       Index           =   4
  860.       Left            =   4200
  861.       ScaleHeight     =   975
  862.       ScaleWidth      =   975
  863.       TabIndex        =   4
  864.       Top             =   480
  865.       Width           =   975
  866.    End
  867.    Begin VB.PictureBox Grid1 
  868.       BackColor       =   &H00000000&
  869.       BorderStyle     =   0  'None
  870.       Height          =   975
  871.       Index           =   3
  872.       Left            =   3240
  873.       ScaleHeight     =   975
  874.       ScaleWidth      =   975
  875.       TabIndex        =   3
  876.       Top             =   480
  877.       Width           =   975
  878.    End
  879.    Begin VB.PictureBox Grid1 
  880.       BackColor       =   &H00FFFFFF&
  881.       BorderStyle     =   0  'None
  882.       Height          =   975
  883.       Index           =   2
  884.       Left            =   2280
  885.       ScaleHeight     =   975
  886.       ScaleWidth      =   975
  887.       TabIndex        =   2
  888.       Top             =   480
  889.       Width           =   975
  890.    End
  891.    Begin VB.PictureBox Grid1 
  892.       BackColor       =   &H00000000&
  893.       BorderStyle     =   0  'None
  894.       Height          =   975
  895.       Index           =   1
  896.       Left            =   1320
  897.       ScaleHeight     =   975
  898.       ScaleWidth      =   975
  899.       TabIndex        =   1
  900.       Top             =   480
  901.       Width           =   975
  902.    End
  903.    Begin VB.PictureBox Grid1 
  904.       BackColor       =   &H00FFFFFF&
  905.       BorderStyle     =   0  'None
  906.       Height          =   975
  907.       Index           =   0
  908.       Left            =   360
  909.       ScaleHeight     =   975
  910.       ScaleWidth      =   975
  911.       TabIndex        =   0
  912.       Top             =   480
  913.       Width           =   975
  914.    End
  915.    Begin VB.PictureBox Light 
  916.       AutoSize        =   -1  'True
  917.       BorderStyle     =   0  'None
  918.       Height          =   480
  919.       Index           =   1
  920.       Left            =   8280
  921.       Picture         =   "FrmMain.frx":105A2
  922.       ScaleHeight     =   480
  923.       ScaleWidth      =   480
  924.       TabIndex        =   64
  925.       Top             =   480
  926.       Visible         =   0   'False
  927.       Width           =   480
  928.    End
  929.    Begin VB.PictureBox Light 
  930.       AutoSize        =   -1  'True
  931.       BorderStyle     =   0  'None
  932.       Height          =   480
  933.       Index           =   0
  934.       Left            =   8280
  935.       Picture         =   "FrmMain.frx":109E4
  936.       ScaleHeight     =   480
  937.       ScaleWidth      =   480
  938.       TabIndex        =   66
  939.       Top             =   1440
  940.       Visible         =   0   'False
  941.       Width           =   480
  942.    End
  943.    Begin VB.PictureBox Light 
  944.       AutoSize        =   -1  'True
  945.       BorderStyle     =   0  'None
  946.       Height          =   480
  947.       Index           =   2
  948.       Left            =   8280
  949.       Picture         =   "FrmMain.frx":10E26
  950.       ScaleHeight     =   480
  951.       ScaleWidth      =   480
  952.       TabIndex        =   67
  953.       Top             =   1440
  954.       Width           =   480
  955.    End
  956.    Begin VB.PictureBox Light 
  957.       AutoSize        =   -1  'True
  958.       BorderStyle     =   0  'None
  959.       Height          =   480
  960.       Index           =   3
  961.       Left            =   8280
  962.       Picture         =   "FrmMain.frx":11268
  963.       ScaleHeight     =   480
  964.       ScaleWidth      =   480
  965.       TabIndex        =   65
  966.       Top             =   480
  967.       Width           =   480
  968.    End
  969.    Begin VB.Label lblXY 
  970.       Alignment       =   1  'Right Justify
  971.       AutoSize        =   -1  'True
  972.       BeginProperty Font 
  973.          Name            =   "MS Sans Serif"
  974.          Size            =   18
  975.          Charset         =   0
  976.          Weight          =   400
  977.          Underline       =   0   'False
  978.          Italic          =   0   'False
  979.          Strikethrough   =   0   'False
  980.       EndProperty
  981.       Height          =   795
  982.       Left            =   11400
  983.       TabIndex        =   85
  984.       Top             =   5500
  985.       Width           =   450
  986.    End
  987.    Begin VB.Label lblPlayerScore 
  988.       Alignment       =   1  'Right Justify
  989.       Caption         =   "0"
  990.       BeginProperty Font 
  991.          Name            =   "MS Sans Serif"
  992.          Size            =   18
  993.          Charset         =   0
  994.          Weight          =   400
  995.          Underline       =   0   'False
  996.          Italic          =   0   'False
  997.          Strikethrough   =   0   'False
  998.       EndProperty
  999.       Height          =   495
  1000.       Index           =   1
  1001.       Left            =   10920
  1002.       TabIndex        =   84
  1003.       Top             =   1320
  1004.       Width           =   855
  1005.    End
  1006.    Begin VB.Label lblPlayerScore 
  1007.       Alignment       =   1  'Right Justify
  1008.       Caption         =   "0"
  1009.       BeginProperty Font 
  1010.          Name            =   "MS Sans Serif"
  1011.          Size            =   18
  1012.          Charset         =   0
  1013.          Weight          =   400
  1014.          Underline       =   0   'False
  1015.          Italic          =   0   'False
  1016.          Strikethrough   =   0   'False
  1017.       EndProperty
  1018.       Height          =   495
  1019.       Index           =   0
  1020.       Left            =   10920
  1021.       TabIndex        =   83
  1022.       Top             =   480
  1023.       Width           =   855
  1024.    End
  1025.    Begin VB.Label lblpieceN 
  1026.       AutoSize        =   -1  'True
  1027.       BeginProperty Font 
  1028.          Name            =   "MS Sans Serif"
  1029.          Size            =   18
  1030.          Charset         =   0
  1031.          Weight          =   400
  1032.          Underline       =   0   'False
  1033.          Italic          =   0   'False
  1034.          Strikethrough   =   0   'False
  1035.       EndProperty
  1036.       Height          =   435
  1037.       Left            =   8400
  1038.       TabIndex        =   82
  1039.       Top             =   5500
  1040.       Width           =   90
  1041.    End
  1042.    Begin VB.Label lblMaxDepth 
  1043.       AutoSize        =   -1  'True
  1044.       BackStyle       =   0  'Transparent
  1045.       Caption         =   "0"
  1046.       BeginProperty Font 
  1047.          Name            =   "MS Sans Serif"
  1048.          Size            =   13.5
  1049.          Charset         =   0
  1050.          Weight          =   700
  1051.          Underline       =   0   'False
  1052.          Italic          =   0   'False
  1053.          Strikethrough   =   0   'False
  1054.       EndProperty
  1055.       Height          =   360
  1056.       Left            =   8520
  1057.       TabIndex        =   81
  1058.       Top             =   8040
  1059.       Width           =   180
  1060.    End
  1061.    Begin VB.Label lblMoveRatio 
  1062.       AutoSize        =   -1  'True
  1063.       BackStyle       =   0  'Transparent
  1064.       Caption         =   "0"
  1065.       BeginProperty Font 
  1066.          Name            =   "MS Sans Serif"
  1067.          Size            =   13.5
  1068.          Charset         =   0
  1069.          Weight          =   700
  1070.          Underline       =   0   'False
  1071.          Italic          =   0   'False
  1072.          Strikethrough   =   0   'False
  1073.       EndProperty
  1074.       Height          =   360
  1075.       Left            =   8520
  1076.       TabIndex        =   80
  1077.       Top             =   7560
  1078.       Width           =   180
  1079.    End
  1080.    Begin VB.Label lblMoveNumber 
  1081.       AutoSize        =   -1  'True
  1082.       BackStyle       =   0  'Transparent
  1083.       Caption         =   "0"
  1084.       BeginProperty Font 
  1085.          Name            =   "MS Sans Serif"
  1086.          Size            =   13.5
  1087.          Charset         =   0
  1088.          Weight          =   700
  1089.          Underline       =   0   'False
  1090.          Italic          =   0   'False
  1091.          Strikethrough   =   0   'False
  1092.       EndProperty
  1093.       Height          =   360
  1094.       Left            =   8520
  1095.       TabIndex        =   79
  1096.       Top             =   7080
  1097.       Width           =   180
  1098.    End
  1099.    Begin VB.Line Line4 
  1100.       X1              =   8400
  1101.       X2              =   12000
  1102.       Y1              =   6960
  1103.       Y2              =   6960
  1104.    End
  1105.    Begin VB.Line Line2 
  1106.       Index           =   2
  1107.       X1              =   8280
  1108.       X2              =   15840
  1109.       Y1              =   240
  1110.       Y2              =   240
  1111.    End
  1112.    Begin VB.Line Line2 
  1113.       Index           =   1
  1114.       X1              =   8280
  1115.       X2              =   12120
  1116.       Y1              =   2040
  1117.       Y2              =   2040
  1118.    End
  1119.    Begin VB.Label lblNames 
  1120.       AutoSize        =   -1  'True
  1121.       Caption         =   "Player"
  1122.       BeginProperty Font 
  1123.          Name            =   "MS Sans Serif"
  1124.          Size            =   18
  1125.          Charset         =   0
  1126.          Weight          =   400
  1127.          Underline       =   0   'False
  1128.          Italic          =   0   'False
  1129.          Strikethrough   =   0   'False
  1130.       EndProperty
  1131.       Height          =   435
  1132.       Index           =   1
  1133.       Left            =   8880
  1134.       TabIndex        =   69
  1135.       Top             =   1440
  1136.       Width           =   1020
  1137.    End
  1138.    Begin VB.Label lblNames 
  1139.       AutoSize        =   -1  'True
  1140.       Caption         =   "Computer"
  1141.       BeginProperty Font 
  1142.          Name            =   "MS Sans Serif"
  1143.          Size            =   18
  1144.          Charset         =   0
  1145.          Weight          =   400
  1146.          Underline       =   0   'False
  1147.          Italic          =   0   'False
  1148.          Strikethrough   =   0   'False
  1149.       EndProperty
  1150.       Height          =   435
  1151.       Index           =   0
  1152.       Left            =   8880
  1153.       TabIndex        =   68
  1154.       Top             =   480
  1155.       Width           =   1590
  1156.    End
  1157.    Begin VB.Line Line2 
  1158.       Index           =   0
  1159.       X1              =   8160
  1160.       X2              =   12120
  1161.       Y1              =   1080
  1162.       Y2              =   1080
  1163.    End
  1164.    Begin VB.Line Line1 
  1165.       BorderWidth     =   2
  1166.       Index           =   1
  1167.       X1              =   240
  1168.       X2              =   240
  1169.       Y1              =   8400
  1170.       Y2              =   240
  1171.    End
  1172.    Begin VB.Line Line1 
  1173.       BorderWidth     =   2
  1174.       Index           =   0
  1175.       X1              =   8160
  1176.       X2              =   8160
  1177.       Y1              =   8400
  1178.       Y2              =   240
  1179.    End
  1180. Attribute VB_Name = "FrmMain"
  1181. Attribute VB_GlobalNameSpace = False
  1182. Attribute VB_Creatable = False
  1183. Attribute VB_PredeclaredId = True
  1184. Attribute VB_Exposed = False
  1185. Option Explicit
  1186. 'Private Sub cmdLoad_Click()
  1187. 'Open "c:\windows\temp\checkers" & Text7 & ".txt" For Binary As #1
  1188. '  Get #1, , CurrentGUIBoard
  1189. 'Close #1
  1190. 'DrawBoard CurrentGUIBoard
  1191. 'End Sub
  1192. 'Private Sub cmdSave_Click()
  1193. 'Open "c:\windows\temp\checkers" & Text7 & ".txt" For Binary As #1
  1194. 'Put #1, , CurrentGUIBoard
  1195. 'Close #1
  1196. 'End Sub
  1197. 'Private Sub Command1_Click()
  1198. 'Depth.StartGame
  1199. 'End Sub
  1200. 'Private Sub Command2_Click()
  1201. '  SquareSelect = 65
  1202. '  Depth.DrawBoard CurrentGUIBoard
  1203. '  PieceMustMove = -1
  1204. '  ModConst.PlayerTurn = 0
  1205. '  ModConst.TurnTime(1) = GetTickCount()
  1206. '  ModConst.TurnTimeE(0) = False
  1207. '  ModConst.TurnTimeE(1) = False
  1208. '  'Sleep 50
  1209. '  Depth.AIMove
  1210. 'End Sub
  1211. 'Private Sub Command3_Click()
  1212. 'Depth.Redraw CurrentGUIBoard
  1213. 'End Sub
  1214. 'Private Sub Command4_Click()
  1215. 'Dim squares(0 To 8, 0 To 8) As Integer
  1216. '' -1=emptycomp   0=comp1  1=comp2 2=emptyhuman 3=human1   4=human2
  1217. 'For PieceN = 1 To 16
  1218. '  temp1 = -1 + 2
  1219. '  If CurrentGUIBoard.Pieces(PieceN).Player = 1 Then temp1 = temp1 + 3
  1220. '  If CurrentGUIBoard.Pieces(PieceN).IsPiece Then temp1 = temp1 + 1
  1221. '  If CurrentGUIBoard.Pieces(PieceN).IsDouble Then temp1 = temp1 + 1
  1222. '  squares(CurrentGUIBoard.Pieces(PieceN).X, CurrentGUIBoard.Pieces(PieceN).Y) = temp1
  1223. 'Next PieceN
  1224. 'Open "C:\Program Files\Microsoft Visual Studio\MyProjects\Checker (C++)\input.txt" For Binary As #1
  1225. '  Put #1, , squares
  1226. 'Close #1
  1227. 'End Sub
  1228. 'Private Sub Command6_Click()
  1229. 'Depth.EvalCount
  1230. 'End Sub
  1231. 'Private Sub Command7_Click()
  1232. 'Depth.GenCount
  1233. 'End Sub
  1234. 'Private Sub Form_Click()
  1235. 'Dim fish As BoardState
  1236. 'MsgBox Len(fish)
  1237. 'End Sub
  1238. 'Private Sub Form_Load()
  1239. 'FrmMain.Width = 16000
  1240. 'Text1_Change
  1241. 'Text2_Change
  1242. 'Text3_Change
  1243. 'Text4_Change
  1244. 'Text5_Change
  1245. 'txtRatio_Change
  1246. 'ModConst.Player1Name = "Bob"
  1247. 'ModConst.Player1Mode = 1
  1248. 'ModConst.Player2Name = "Daniel"
  1249. 'ModConst.Player2Mode = 0
  1250. 'For int1 = 0 To 63
  1251. '    If ((int1 - (int1 Mod 8)) / 8) Mod 2 = (int1 Mod 8) Mod 2 Then
  1252. '      FrmMain!Grid1(int1).BackColor = ColorConstants.vbBlack
  1253. '      FrmMain!Grid1(int1).Picture = FrmMain!Picture1(0).Picture
  1254. '    Else
  1255. '      FrmMain!Grid1(int1).BackColor = ColorConstants.vbWhite
  1256. '      FrmMain!Grid1(int1).Picture = FrmMain!Picture1(6).Picture
  1257. '    End If
  1258. 'Next int1
  1259. 'FrmMain!Label1(0) = Player1Name
  1260. 'If Player1Mode = 0 Then FrmMain!HumanFace(0).Visible = True: FrmMain!Compface(0).Visible = False
  1261. 'If Player1Mode = 1 Then FrmMain!HumanFace(0).Visible = False: FrmMain!Compface(0).Visible = True
  1262. 'FrmMain!Label1(1) = Player2Name
  1263. 'If Player2Mode = 0 Then FrmMain!HumanFace(1).Visible = True: FrmMain!Compface(1).Visible = False
  1264. 'If Player2Mode = 1 Then FrmMain!HumanFace(1).Visible = False: FrmMain!Compface(1).Visible = True
  1265. 'SetTurnLights 1
  1266. 'Subs.PieceMustMove = -1
  1267. 'Depth.MultiTake = True
  1268. 'End Sub
  1269. 'Private Sub Form_Unload(Cancel As Integer)
  1270. 'FrmMain.Timer1.Enabled = False
  1271. 'DoEvents
  1272. 'End Sub
  1273. 'Private Sub GameTimer_Timer()
  1274. 'Beep
  1275. 'End Sub
  1276. Private Sub cmdNewGame_Click()
  1277.   frmNew.Show
  1278. End Sub
  1279. Private Sub cmdRedraw_Click()
  1280.   GUI.Redraw CurrentGUIBoard
  1281. End Sub
  1282. 'Private Sub OpAutoDepth_Click()
  1283. '  Depth.AutoDepth = True
  1284. 'End Sub
  1285. 'Private Sub OpAutoDepth2_Click()
  1286. '  Depth.AutoDepth = False
  1287. 'End Sub
  1288. 'Private Sub OpExchange_Click()
  1289. '  Depth.Exchange = True
  1290. 'End Sub
  1291. 'Private Sub OpExchange2_Click()
  1292. 'Depth.Exchange = False
  1293. 'End Sub
  1294. 'Private Sub opReversBoard_Click()
  1295. 'Depth.DrawBoard CurrentGUIBoard
  1296. 'End Sub
  1297. 'Private Sub OpReverseBoard2_Click()
  1298. 'Depth.DrawBoard CurrentGUIBoard
  1299. 'End Sub
  1300. 'Private Sub Option1_Click()
  1301. 'Depth.MultiTake = False
  1302. 'End Sub
  1303. 'Private Sub Option2_Click()
  1304. 'Depth.MultiTake = True
  1305. 'End Sub
  1306. 'Private Sub Text1_Change()
  1307. 'If IsNumeric(Text1) Then
  1308. '  If Int(Text1) < 50 Then
  1309. '    MaxDepth = Int(Text1)
  1310. '  End If
  1311. 'End If
  1312. 'End Sub
  1313. 'Private Sub Text2_Change()
  1314. 'If IsNumeric(Text2) Then
  1315. '  CSinglePieceV = Int(Text2)
  1316. 'End If
  1317. 'End Sub
  1318. 'Private Sub Text3_Change()
  1319. 'If IsNumeric(Text3) Then
  1320. '  CDoublePieceV = Int(Text3)
  1321. 'End If
  1322. 'End Sub
  1323. 'Private Sub Text5_Change()
  1324. 'If IsNumeric(Text5) Then
  1325. '  MinTime = Int(Text5) * 1000
  1326. 'End If
  1327. 'End Sub
  1328. 'Private Sub Text4_Change()
  1329. 'If IsNumeric(Text4) Then
  1330. '  MaxTime = Int(Text4) * 1000
  1331. 'End If
  1332. 'End Sub
  1333. 'Private Sub Text6_Change()
  1334. 'If Text6 = "1" Then
  1335. '  PlayerTurn = 1
  1336. 'ElseIf Text6 = "0" Then
  1337. '  PlayerTurn = 0
  1338. 'End If
  1339. 'If Not Text6 = "" Then Text6 = ""
  1340. 'End Sub
  1341. 'Sub Timer1_Timer()
  1342. 'Dim Lng1 As Long, Lng2 As Long, Mins As Long, Secs As Long, MinsS As String, SecsS As String, int1 As Byte
  1343. 'Timer1.Enabled = False
  1344. 'Do While Timer1.Enabled = True
  1345. '  Lng1 = GetTickCount
  1346. '  If StartTimeE Then
  1347. '    Lng2 = Lng1 - StartTime
  1348. '    Mins = Round(((Lng2 - (Lng2 Mod 60000)) / 60000), 0)
  1349. '    Secs = Round((Lng2 Mod 60000) / 1000, 0)
  1350. '    If Secs = 60 Then Secs = 0: Mins = Mins + 1
  1351. '    SecsS = CStr(Secs)
  1352. '    If Len(SecsS) = 1 Then SecsS = "0" & SecsS
  1353. '    MinsS = CStr(Mins)
  1354. '    LblGameTime = MinsS & ":" & SecsS
  1355. '  End If
  1356. '  DoEvents
  1357. '  For int1 = 0 To 1
  1358. '    If TurnTimeE(int1) Then
  1359. '      Lng2 = Lng1 - TurnTime(int1)
  1360. '      Mins = Round(((Lng2 - (Lng2 Mod 60000)) / 60000), 0)
  1361. '      Secs = Round((Lng2 Mod 60000) / 1000, 0)
  1362. '      If Secs = 60 Then Secs = 0: Mins = Mins + 1
  1363. '      SecsS = CStr(Secs)
  1364. '      If Len(SecsS) = 1 Then SecsS = "0" & SecsS
  1365. '      MinsS = CStr(Mins)
  1366. '      Label2(int1) = MinsS & ":" & SecsS
  1367. '    End If
  1368. '  Next
  1369. '    DoEvents
  1370. 'Loop
  1371. 'End Sub
  1372. 'Private Sub txtRatio_Change()
  1373. 'If IsNumeric(txtRatio) Then
  1374. '  CRatioV = Int(txtRatio)
  1375. 'End If
  1376. 'End Sub
  1377. Private Sub cmdSave_Click()
  1378. frmGameSave.Show
  1379. End Sub
  1380. Private Sub Command1_Click()
  1381. Dim int1 As Byte
  1382. If Nplayers = 1 Then
  1383.   If UBound(PastBoardStates) <= 1 Then Exit Sub
  1384.   int1 = CurrentGUIBoard.PlayerTurn
  1385.   'int1 = NotB(int1)
  1386.   CopyState CurrentGUIBoard, PastBoardStates(UBound(PastBoardStates) - 1)
  1387.   ReDim Preserve PastBoardStates(UBound(PastBoardStates) - 2)
  1388.   CurrentGUIBoard.PlayerTurn = int1
  1389.   GUI.DrawBoard CurrentGUIBoard
  1390.   If Nplayers = 1 And CurrentPlayerTurn = COMP Then AI.MakeAIMove CurrentGUIBoard
  1391.   If UBound(PastBoardStates) <= 0 Then Exit Sub
  1392.   int1 = CurrentGUIBoard.PlayerTurn
  1393.   int1 = NotB(int1)
  1394.   CopyState CurrentGUIBoard, PastBoardStates(UBound(PastBoardStates))
  1395.   ReDim Preserve PastBoardStates(UBound(PastBoardStates) - 1)
  1396.   CurrentGUIBoard.PlayerTurn = int1
  1397.   GUI.DrawBoard CurrentGUIBoard
  1398.   If Nplayers = 1 And CurrentPlayerTurn = COMP Then AI.MakeAIMove CurrentGUIBoard
  1399. End If
  1400. End Sub
  1401. Private Sub cmdStart1P_Click()
  1402. Nplayers = 1
  1403. CurrentPlayerTurn = 1
  1404. General.InitBoard
  1405. GUI.DrawBoard CurrentGUIBoard
  1406. End Sub
  1407. Private Sub cmdStart2P_Click()
  1408. Nplayers = 2
  1409. CurrentPlayerTurn = 1
  1410. General.InitBoard
  1411. GUI.DrawBoard CurrentGUIBoard
  1412. 'GUI.DrawBoard CurrentGUIBoard
  1413. End Sub
  1414. Private Sub Command3_Click()
  1415. GUI.DrawBoard CurrentGUIBoard
  1416. End Sub
  1417. Private Sub Command4_Click()
  1418. SquareSelect = 65
  1419. GUI.DrawBoard CurrentGUIBoard
  1420. End Sub
  1421. Private Sub Command2_Click()
  1422.   AI.MakeAIMove CurrentGUIBoard
  1423.   CurrentPlayerTurn = HUMAN
  1424. End Sub
  1425. Private Sub Form_Load()
  1426. LoadMoveValues
  1427. 'oppForceTake(1).Value = True
  1428. 'oppForceTake_Click 1
  1429. 'oppMultiTake(1).Value = True
  1430. 'oppMultiTake_Click 1
  1431. 'oppFullset(1).Value = True
  1432. 'oppFullset_Click 1
  1433. PlayerNames(0) = "Player 2"
  1434. PlayerNames(1) = "Player 1"
  1435. SetPlayerLights
  1436. End Sub
  1437. Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  1438. lblXY = ""
  1439. lblpieceN = ""
  1440. End Sub
  1441. Private Sub Form_Unload(Cancel As Integer)
  1442. Unload frmGameSave
  1443. End Sub
  1444. Private Sub Grid1_Click(Index As Integer)
  1445. Dim Takepiece As Boolean, NewPos As Integer
  1446. 'If FrmMain!opReversBoard Then Index = 63 - Index
  1447. Dim Square1 As CPiece, Square2 As CPiece, Square3 As CPiece
  1448. Dim X As Byte, Y As Byte
  1449. Dim cX As Integer, cY As Integer
  1450. Dim Moves() As move
  1451. Dim index1 As Byte
  1452. index1 = CByte(Index)
  1453. If ReverseBoard = 1 Then index1 = 63 - index1
  1454. 'SquareSelect = 65
  1455.   If SquareSelect = 65 Then
  1456.     General.XYConvert index1, X, Y
  1457.     Square1 = CheckSquare(X, Y, CurrentGUIBoard)
  1458.     If Square1.isSquare = 0 Then Exit Sub
  1459.     If Square1.Live = 0 Then Exit Sub
  1460.     'If Square1.Player = COMP Then Exit Sub 'TODO
  1461.     SquareSelect = index1
  1462.     'GUI.DrawBoard CurrentGUIBoard
  1463.     GUI.DrawBoard CurrentGUIBoard
  1464.     Exit Sub
  1465.   End If
  1466.   If SquareSelect = index1 Then GoTo exitMove
  1467.   General.XYConvert SquareSelect, X, Y
  1468.   Square1 = CheckSquare(X, Y, CurrentGUIBoard)
  1469.   If Not Square1.player = CurrentPlayerTurn Then GoTo exitMove
  1470.   General.XYConvert index1, X, Y
  1471.   Square2 = CheckSquare(X, Y, CurrentGUIBoard)
  1472.   If Square2.isSquare = 0 Then GoTo exitMove
  1473. Dim PossTakes As Posstakemoves
  1474. 'MsgBox Square1.Player
  1475. PossTakes = AI.FindPossTakes(CurrentGUIBoard, Square1.player)
  1476.   If Square2.Live = 0 Then
  1477.     If ForceTake = 1 And PossTakes.nPoss > 0 Then GoTo exitMove
  1478.     Dim int1 As Integer
  1479.     cX = CInt(Square2.X) - CInt(Square1.X)
  1480.     cY = CInt(Square2.Y) - CInt(Square1.Y)
  1481.     If Not (Abs(cX) = 1 And Abs(cY) = 1) Then GoTo exitMove
  1482.       If Not Square1.Double = 1 Then
  1483.         If Square1.player = COMP Then
  1484.           If cY = -1 Then GoTo exitMove
  1485.         Else
  1486.           If cY = 1 Then GoTo exitMove
  1487.         End If
  1488.       End If
  1489.       
  1490.     ReDim Moves(1)
  1491.     Moves(1).KillIndex = 65
  1492.     Moves(1).MoveFromIndex = SquareSelect
  1493.     Moves(1).MoveToIndex = index1
  1494.     Moves(1).Delay = 10
  1495.         
  1496.         If Square1.player = COMP Then
  1497.           If Square2.Y = 8 Then CurrentGUIBoard.Pieces(Square1.pNumber).Double = 1
  1498.         Else
  1499.           If Square2.Y = 1 Then CurrentGUIBoard.Pieces(Square1.pNumber).Double = 1
  1500.         End If
  1501.     CurrentPlayerTurn = NotB(CurrentPlayerTurn)
  1502.     GUI.MakeMove Moves, CurrentGUIBoard
  1503.     'normal move
  1504.   Else
  1505.     If Square2.player = Square1.player Then SquareSelect = index1: GUI.DrawBoard CurrentGUIBoard: Exit Sub
  1506.     cX = (CInt(Square1.X) - CInt(Square2.X))
  1507.     cY = (CInt(Square1.Y) - CInt(Square2.Y))
  1508.     If Not (Abs(cX) = 1 And Abs(cY) = 1) Then SquareSelect = 65: GUI.DrawBoard CurrentGUIBoard: Exit Sub
  1509.       If Not Square1.Double = 1 Then
  1510.         If Square1.player = COMP Then
  1511.           If cY = 1 Then GoTo exitMove
  1512.         Else
  1513.           If cY = -1 Then GoTo exitMove
  1514.         End If
  1515.       End If
  1516.       
  1517.       X = (CInt(Square2.X) - CInt(Square1.X)) + Square2.X
  1518.       YInt(Square2.X) - 34player Then SquareSelect = index1: GUI.t Sub
  1519. oGUI 1 And Absdex1
  1520.     Moves(1).Delay = 10
  1521.         
  1522.         If Square1.player = COMP Then
  1523.           If Square2.Y = 8 Th82T8surrentGUIBoard.PlayerTuX
  1524. f Square2.Y = 8 Th82T8surrentGUIBoard.PlayerTuX
  1525. f Square2.Y = 8 Th82T8surrentGUIBoard.Play(erTuX  If Square2.Y = 8 Th82T8surrentGUIBoard.PlayerTuX
  1526. f Square2.Y = 8 Th82T8surrentGUIBoard1IBoard2.Y = entGUIB1u0A30E2.Y = entGUIB1u0IB1u0A30E2.Y = entGUIB1u0IB1u0rrrrrrrrreuare2.Y = 8 Th82T8surrentGUIBoard.PlayerTuX
  1527. f Square2.Y = 8 T2m_LoeXrentGUIBoardIBoardIBoardIBoardIp Th82T8surrentGUIBoare2.YBBoardIp = entGUIB1u0A30E2.Y = entGUIB1uuare1.player)
  1528.   If Square2.Live = 0 The
  1529.     If Square1.isSquare = 0 Then Exit Sub
  1530.     If Square1.Live = 0 Then Exit Sub
  1531.     'If Square1.Player = CO1 Then indeuare1lm 8 Th82oect = 65
  1532.   5uNpuar4dex)82B1u0t    If Square1.isSquare = 0 Then Exit Sub
  1533.     If Square1.Live = 0 Then Exit Sub
  1534.     'If Square1.Player = CO1 Then indeaSub
  1535.     'If Squa1r   Sub
  1536.     If Square1.Live = 0awBe4ard
  1537.   If UBounre = 0 Then GoTo exitMove
  1538. u342 
  1539.  oaf ForceTake rceiIf Square1.isSquare = 0 Then Exit Sub
  1540.     If Square1.Live uare = 0 Then Exit Sub
  1541.     If Square1.Live uare = 0 Then Exit Sub
  1542.     If Square1.Live uare = 0 Then Exit Sub
  1543.     If Square1.Live uare = 0 Then Exit Sub
  1544.     If Square1.Live uare = 0 Then Exit Sub
  1545.     If Square1.Live uare = 0 Then Exit Sub
  1546.     If Square1  If Square1.Laepe = Square1.Live3d,nd vesocepe = 24  X = (CInt(Square2.X) - CInt(Square1.X)) + Square2.X
  1547.       YInt(Square2.X) - 34player Then SquareSelect = index1: GUI.t Sub
  1548. oxite2Live uare = 0 Then Exit Sub
  1549.     If Square1.Live uare = 0 Then Exit Sub
  1550.     If Square1.Live uare = 0 Then Exit Sub
  1551.     If (2entGUIBoard1IBoard2.Y =lIf Square1.Live uBoard1IBoard2.Y =lIf Square1.Liv = 65:(sPm = 0o(re1.Liv = 65:(sPm = 0o(re1.Lie(Sq
  1552.         
  1553.       r9       
  1554.       r9       
  1555.       r9       
  1556.       r9       
  1557.       r9       
  1558.       r9       
  1559.       r9       
  1560.       r9       
  1561.       r9       
  1562.       r9       
  1563.       r9       
  1564.       r9       
  1565.       r9       
  1566.       r9       
  1567.        r9       
  1568.       r9       
  1569.        r9       
  1570.       r9       
  1571.        r9       
  1572.       r9       
  1573.        r9       
  1574.      Bm= 8 Th82T8sunoe3 Sub
  1575.   - CInt(Squard2.Y = entGUIB1u0A30E2.Y = en 0
  1576. '9   sunoe3 Sub
  1577.   - CInt(Squard2.Y = entGUIB1u0A30E2.Y = en 0
  1578. '9   sunoe
  1579.