Peg Solitaire Diamond Board Demonstration
2021-01-07 05:30
This GeoGebra applet demonstrates the 41-hole diamond board for Peg Solitaire. Using Polygon, Circle, and Sequence commands, it accurately renders the grid and hole positions, incorporating interactive logic for peg movement. This model highlights geometric construction and provides a dynamic platform for exploring combinatorial math and logical puzzles.
In collections
Math Games with GeoGebra
<?xml version="1.0" encoding="utf-8"?>
<geogebra format="5.0" version="5.0.620.0" app="classic" platform="w" id="f96e3e7d-6d38-4319-b8be-ef8b275e5cb4" xsi:noNamespaceSchemaLocation="http://www.geogebra.org/apps/xsd/ggb.xsd" xmlns="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
<gui>
<window width="811" height="829" />
<perspectives>
<perspective id="tmp">
<panes>
<pane location="" divider="0.12083847102342787" orientation="1" />
</panes>
<views>
<view id="512" toolbar="0 | 1 501 5 19 , 67 | 2 15 45 18 , 7 37 | 514 3 9 , 13 44 , 47 | 16 51 | 551 550 11 , 20 22 21 23 , 55 56 57 , 12 | 69 | 510 511 , 512 513 | 533 531 , 534 532 , 522 523 , 537 536 , 535 | 521 520 | 36 , 38 49 560 | 571 30 29 570 31 33 | 17 | 540 40 41 42 , 27 28 35 , 6 , 502" visible="false" inframe="false" stylebar="false" location="1,1,1" size="500" window="100,100,600,400" />
<view id="4" toolbar="0 || 2020 , 2021 , 2022 , 66 || 2001 , 2003 , 2002 , 2004 , 2005 || 2040 , 2041 , 2042 , 2044 , 2043" visible="false" inframe="false" stylebar="false" location="1,1" size="300" window="100,100,600,400" />
<view id="8" toolbar="1001 | 1002 | 1003 || 1005 | 1004 || 1006 | 1007 | 1010 || 1008 1009 || 66 68 || 6" visible="false" inframe="false" stylebar="false" location="1,3" size="300" window="100,100,600,400" />
<view id="4097" visible="false" inframe="false" stylebar="true" location="1,1" size="395" window="360,485,1444,747" />
<view id="1" visible="true" inframe="false" stylebar="false" location="1" size="811" window="100,100,600,400" />
<view id="2" visible="false" inframe="false" stylebar="true" location="3" size="510" tab="ALGEBRA" window="58,0,663,997" />
<view id="16" visible="false" inframe="false" stylebar="true" location="1" size="300" window="1399,172,500,500" />
<view id="32" visible="false" inframe="false" stylebar="true" location="1" size="150" window="50,50,500,500" />
<view id="64" toolbar="0" visible="false" inframe="false" stylebar="false" location="1" size="150" window="50,50,500,500" />
<view id="128" visible="false" inframe="false" stylebar="false" location="1" size="480" window="50,50,500,500" />
<view id="70" toolbar="0 || 2020 || 2021 || 2022" visible="false" inframe="false" stylebar="true" location="1" size="150" window="50,50,500,500" />
</views>
<toolbar show="false" items="0 39 73 62 | 1 501 67 , 5 19 , 72 75 76 | 2 15 45 , 18 65 , 7 37 | 4 3 8 9 , 13 44 , 58 , 47 | 16 51 64 , 70 | 10 34 53 11 , 24 20 22 , 21 23 | 55 56 57 , 12 | 36 46 , 38 49 50 , 71 14 68 | 30 29 54 32 31 33 | 25 17 26 60 52 61 | 40 41 42 , 27 28 35 , 6" position="3" help="false" />
<input show="false" cmd="true" top="algebra" />
<dockBar show="false" east="false" />
</perspective>
</perspectives>
<labelingStyle val="3"/>
<font size="20"/>
</gui>
<euclidianView>
<viewNumber viewNo="1"/>
<size width="810" height="828"/>
<coordSystem xZero="405.50000000000006" yZero="353.12644220078977" scale="76.71694724901282" yscale="76.71694724901275"/>
<evSettings axes="false" grid="true" gridIsBold="true" pointCapturing="2" rightAngleStyle="1" checkboxSize="26" gridType="0"/>
<bgColor r="255" g="255" b="255"/>
<axesColor r="0" g="0" b="0"/>
<gridColor r="255" g="0" b="255"/>
<lineStyle axes="1" grid="20"/>
<axis id="0" show="false" label="x" unitLabel="" tickStyle="1" showNumbers="true" tickDistance="1" tickExpression="1" selectionAllowed="false"/>
<axis id="1" show="false" label="y" unitLabel="" tickStyle="1" showNumbers="true" tickDistance="1" tickExpression="1" selectionAllowed="false"/>
<grid distX="1" distY="1" distTheta="0.5235987755982988"/>
</euclidianView>
<kernel>
<continuous val="false"/>
<usePathAndRegionParameters val="true"/>
<decimals val="2"/>
<angleUnit val="degree"/>
<algebraStyle val="0" spreadsheet="0"/>
<coordStyle val="0"/>
</kernel>
<tableview min="-2" max="2" step="1"/>
<scripting blocked="false" disabled="false"/>
<construction title="" author="" date="">
<expression label="focuson" exp="{}"/>
<element type="list" label="focuson">
<show object="false" label="false" ev="4"/>
<objColor r="0" g="100" b="0" alpha="0"/>
<layer val="1"/>
<labelMode val="0"/>
<tooltipMode val="2"/>
<animation step="1" speed="1" type="0" playing="false"/>
<ggbscript onUpdate="
"/>
<lineStyle thickness="5" type="0" typeHidden="1"/>
<listType val="point"/>
<pointSize val="9"/>
<pointStyle val="4"/>
<angleStyle val="0"/>
</element>
<expression label="spaces" exp="{(0, 0)}"/>
<element type="list" label="spaces">
<show object="false" label="false" ev="4"/>
<objColor r="0" g="100" b="0" alpha="0"/>
<layer val="2"/>
<labelMode val="0"/>
<tooltipMode val="2"/>
<animation step="1" speed="1" type="0" playing="false"/>
<lineStyle thickness="5" type="0" typeHidden="1"/>
<pointSize val="9"/>
<pointStyle val="1"/>
<angleStyle val="0"/>
</element>
<expression label="all" exp="{(-1, 3), (0, 3), (1, 3), (-1, 2), (0, 2), (1, 2), (-3, 1), (-2, 1), (-1, 1), (0, 1), (1, 1), (2, 1), (3, 1), (-3, 0), (-2, 0), (-1, 0), (0, 0), (1, 0), (2, 0), (3, 0), (-3, -1), (-2, -1), (-1, -1), (0, -1), (1, -1), (2, -1), (3, -1), (-1, -2), (0, -2), (1, -2), (-1, -3), (0, -3), (1, -3), (-2, 2), (2, 2), (-2, -2), (2, -2), (4, 0), (0, 4), (-4, 0), (0, -4)}"/>
<element type="list" label="all">
<show object="false" label="true" ev="4"/>
<objColor r="0" g="100" b="0" alpha="0"/>
<layer val="9"/>
<labelMode val="2"/>
<animation step="1" speed="1" type="0" playing="false"/>
<lineStyle thickness="5" type="0" typeHidden="1"/>
<pointSize val="7"/>
<pointStyle val="0"/>
<angleStyle val="0"/>
</element>
<expression label="checkers" exp="all \ spaces" />
<element type="list" label="checkers">
<show object="false" label="false" ev="4"/>
<objColor r="0" g="100" b="0" alpha="0"/>
<layer val="2"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<lineStyle thickness="5" type="0" typeHidden="1"/>
<pointSize val="9"/>
<pointStyle val="7"/>
<angleStyle val="0"/>
</element>
<expression label="Gamelog" exp="{}"/>
<element type="list" label="Gamelog">
<show object="false" label="false" ev="4"/>
<objColor r="0" g="100" b="0" alpha="0"/>
<layer val="8"/>
<labelMode val="0"/>
<animation step="1" speed="1" type="0" playing="false"/>
<lineStyle thickness="5" type="0" typeHidden="1"/>
<listType val="list"/>
<pointSize val="5"/>
<pointStyle val="0"/>
<angleStyle val="0"/>
</element>
<element type="numeric" label="r">
<value val="0.5"/>
<show object="true" label="true"/>
<objColor r="0" g="0" b="0" alpha="0.10000000149011612"/>
<layer val="0"/>
<labelMode val="1"/>
<slider min="0" max="1" absoluteScreenLocation="true" width="200" x="30" y="50" fixed="false" horizontal="true" showAlgebra="true"/>
<lineStyle thickness="10" type="0" typeHidden="1"/>
<animation step="0.05" speed="1" type="0" playing="false"/>
</element>
<command name="Polygon">
<input a0="{(-1.5, -3.5), (-0.5, -3.5), (-0.5, -4.5), (0.5, -4.5), (0.5, -3.5), (1.5, -3.5), (1.5, -2.5), (2.5, -2.5), (2.5, -1.5), (3.5, -1.5), (3.5, -0.5), (4.5, -0.5), (4.5, 0.5), (3.5, 0.5), (3.5, 1.5), (2.5, 1.5), (2.5, 2.5), (1.5, 2.5), (1.5, 3.5), (0.5, 3.5), (0.5, 4.5), (-0.5, 4.5), (-0.5, 3.5), (-1.5, 3.5), (-1.5, 2.5), (-2.5, 2.5), (-2.5, 1.5), (-3.5, 1.5), (-3.5, 0.5), (-4.5, 0.5), (-4.5, -0.5), (-3.5, -0.5), (-3.5, -1.5), (-2.5, -1.5), (-2.5, -2.5), (-1.5, -2.5), (-1.5, -3.5)}"/>
<output a0="polyBoard"/>
</command>
<element type="polygon" label="polyBoard">
<lineStyle thickness="0" type="0" typeHidden="1" opacity="178"/>
<show object="true" label="false" ev="4"/>
<objColor r="220" g="20" b="60" alpha="1" inverseFill="true"/>
<layer val="1"/>
<labelMode val="0"/>
<tooltipMode val="2"/>
<selectionAllowed val="false"/>
<ggbscript val="F=(2,2)
S=(2,2)
T=(2,2)
focuson={}
SelectObjects()"/>
</element>
<command name="Circle">
<input a0="(-1, 3)" a1="r"/>
<output a0="c1"/>
</command>
<element type="conic" label="c1">
<show object="true" label="false" ev="4"/>
<objColor r="255" g="255" b="255" alpha="0.05000000074505806"/>
<layer val="0"/>
<labelOffset x="-7" y="20"/>
<labelMode val="3"/>
<tooltipMode val="2"/>
<fixed val="true"/>
<ggbscript val="SetValue[F,(-1,3)]
"/>
<lineStyle thickness="1" type="0" typeHidden="1" opacity="0"/>
<eigenvectors x0="1" y0="0" z0="1.0" x1="0" y1="1" z1="1.0"/>
<matrix A0="1" A1="1" A2="9.75" A3="0" A4="1" A5="-3"/>
<eqnStyle style="specific"/>
</element>
<command name="Circle">
<input a0="(0, 3)" a1="r"/>
<output a0="c2"/>
</command>
<element type="conic" label="c2">
<show object="true" label="false" ev="4"/>
<objColor r="255" g="255" b="255" alpha="0.05000000074505806"/>
<layer val="0"/>
<labelOffset x="0" y="22"/>
<labelMode val="3"/>
<tooltipMode val="2"/>
<fixed val="true"/>
<ggbscript val="SetValue[F,(0,3)]
"/>
<lineStyle thickness="1" type="0" typeHidden="1" opacity="0"/>
<eigenvectors x0="1" y0="0" z0="1.0" x1="0" y1="1" z1="1.0"/>
<matrix A0="1" A1="1" A2="8.75" A3="0" A4="0" A5="-3"/>
<eqnStyle style="specific"/>
</element>
<command name="Circle">
<input a0="(1, 3)" a1="r"/>
<output a0="c3"/>
</command>
<element type="conic" label="c3">
<show object="true" label="false" ev="4"/>
<objColor r="255" g="255" b="255" alpha="0.05000000074505806"/>
<layer val="0"/>
<labelOffset x="2" y="21"/>
<labelMode val="3"/>
<tooltipMode val="2"/>
<fixed val="true"/>
<ggbscript val="SetValue[F,(1,3)]
"/>
<lineStyle thickness="1" type="0" typeHidden="1" opacity="0"/>
<eigenvectors x0="1" y0="0" z0="1.0" x1="0" y1="1" z1="1.0"/>
<matrix A0="1" A1="1" A2="9.75" A3="0" A4="-1" A5="-3"/>
<eqnStyle style="specific"/>
</element>
<command name="Circle">
<input a0="(-1, 2)" a1="r"/>
<output a0="c4"/>
</command>
<element type="conic" label="c4">
<show object="true" label="false" ev="4"/>
<objColor r="255" g="255" b="255" alpha="0.05000000074505806"/>
<layer val="0"/>
<labelOffset x="-7" y="21"/>
<labelMode val="3"/>
<tooltipMode val="2"/>
<fixed val="true"/>
<ggbscript val="SetValue[F,(-1,2)]
"/>
<lineStyle thickness="1" type="0" typeHidden="1" opacity="0"/>
<eigenvectors x0="1" y0="0" z0="1.0" x1="0" y1="1" z1="1.0"/>
<matrix A0="1" A1="1" A2="4.75" A3="0" A4="1" A5="-2"/>
<eqnStyle style="specific"/>
</element>
<command name="Circle">
<input a0="(0, 2)" a1="r"/>
<output a0="c5"/>
</command>
<element type="conic" label="c5">
<show object="true" label="false" ev="4"/>
<objColor r="255" g="255" b="255" alpha="0.05000000074505806"/>
<layer val="0"/>
<labelOffset x="-1" y="22"/>
<labelMode val="3"/>
<tooltipMode val="2"/>
<fixed val="true"/>
<ggbscript val="SetValue[F,(0,2)]
"/>
<lineStyle thickness="1" type="0" typeHidden="1" opacity="0"/>
<eigenvectors x0="1" y0="0" z0="1.0" x1="0" y1="1" z1="1.0"/>
<matrix A0="1" A1="1" A2="3.75" A3="0" A4="0" A5="-2"/>
<eqnStyle style="specific"/>
</element>
<command name="Circle">
<input a0="(1, 2)" a1="r"/>
<output a0="c6"/>
</command>
<element type="conic" label="c6">
<show object="true" label="false" ev="4"/>
<objColor r="255" g="255" b="255" alpha="0.05000000074505806"/>
<layer val="0"/>
<labelOffset x="-3" y="22"/>
<labelMode val="3"/>
<tooltipMode val="2"/>
<fixed val="true"/>
<ggbscript val="SetValue[F,(1,2)]
"/>
<lineStyle thickness="1" type="0" typeHidden="1" opacity="0"/>
<eigenvectors x0="1" y0="0" z0="1.0" x1="0" y1="1" z1="1.0"/>
<matrix A0="1" A1="1" A2="4.75" A3="0" A4="-1" A5="-2"/>
<eqnStyle style="specific"/>
</element>
<command name="Circle">
<input a0="(-3, 1)" a1="r"/>
<output a0="c7"/>
</command>
<element type="conic" label="c7">
<show object="true" label="false" ev="4"/>
<objColor r="255" g="255" b="255" alpha="0.05000000074505806"/>
<layer val="0"/>
<labelOffset x="-7" y="23"/>
<labelMode val="3"/>
<tooltipMode val="2"/>
<fixed val="true"/>
<ggbscript val="SetValue[F,(-3,1)]
"/>
<lineStyle thickness="1" type="0" typeHidden="1" opacity="0"/>
<eigenvectors x0="1" y0="0" z0="1.0" x1="0" y1="1" z1="1.0"/>
<matrix A0="1" A1="1" A2="9.75" A3="0" A4="3" A5="-1"/>
<eqnStyle style="specific"/>
</element>
<command name="Circle">
<input a0="(-2, 1)" a1="r"/>
<output a0="c8"/>
</command>
<element type="conic" label="c8">
<show object="true" label="false" ev="4"/>
<objColor r="255" g="255" b="255" alpha="0.05000000074505806"/>
<layer val="0"/>
<labelOffset x="-6" y="22"/>
<labelMode val="3"/>
<tooltipMode val="2"/>
<fixed val="true"/>
<ggbscript val="SetValue[F,(-2,1)]
"/>
<lineStyle thickness="1" type="0" typeHidden="1" opacity="0"/>
<eigenvectors x0="1" y0="0" z0="1.0" x1="0" y1="1" z1="1.0"/>
<matrix A0="1" A1="1" A2="4.75" A3="0" A4="2" A5="-1"/>
<eqnStyle style="specific"/>
</element>
<command name="Circle">
<input a0="(-1, 1)" a1="r"/>
<output a0="c9"/>
</command>
<element type="conic" label="c9">
<show object="true" label="false" ev="4"/>
<objColor r="255" g="255" b="255" alpha="0.05000000074505806"/>
<layer val="0"/>
<labelOffset x="-5" y="22"/>
<labelMode val="3"/>
<tooltipMode val="2"/>
<fixed val="true"/>
<ggbscript val="SetValue[F,(-1,1)]
"/>
<lineStyle thickness="1" type="0" typeHidden="1" opacity="0"/>
<eigenvectors x0="1" y0="0" z0="1.0" x1="0" y1="1" z1="1.0"/>
<matrix A0="1" A1="1" A2="1.75" A3="0" A4="1" A5="-1"/>
<eqnStyle style="specific"/>
</element>
<command name="Circle">
<input a0="(0, 1)" a1="r"/>
<output a0="c10"/>
</command>
<element type="conic" label="c10">
<show object="true" label="false" ev="4"/>
<objColor r="255" g="255" b="255" alpha="0.05000000074505806"/>
<layer val="0"/>
<labelOffset x="-2" y="23"/>
<labelMode val="3"/>
<tooltipMode val="2"/>
<fixed val="true"/>
<ggbscript val="SetValue[F,(0,1)]
"/>
<lineStyle thickness="1" type="0" typeHidden="1" opacity="0"/>
<eigenvectors x0="1" y0="0" z0="1.0" x1="0" y1="1" z1="1.0"/>
<matrix A0="1" A1="1" A2="0.75" A3="0" A4="0" A5="-1"/>
<eqnStyle style="specific"/>
</element>
<command name="Circle">
<input a0="(1, 1)" a1="r"/>
<output a0="c11"/>
</command>
<element type="conic" label="c11">
<show object="true" label="false" ev="4"/>
<objColor r="255" g="255" b="255" alpha="0.05000000074505806"/>
<layer val="0"/>
<labelOffset x="-1" y="22"/>
<labelMode val="3"/>
<tooltipMode val="2"/>
<fixed val="true"/>
<ggbscript val="SetValue[F,(1,1)]
"/>
<lineStyle thickness="1" type="0" typeHidden="1" opacity="0"/>
<eigenvectors x0="1" y0="0" z0="1.0" x1="0" y1="1" z1="1.0"/>
<matrix A0="1" A1="1" A2="1.75" A3="0" A4="-1" A5="-1"/>
<eqnStyle style="specific"/>
</element>
<command name="Circle">
<input a0="(2, 1)" a1="r"/>
<output a0="c12"/>
</command>
<element type="conic" label="c12">
<show object="true" label="false" ev="4"/>
<objColor r="255" g="255" b="255" alpha="0.05000000074505806"/>
<layer val="0"/>
<labelOffset x="-1" y="24"/>
<labelMode val="3"/>
<tooltipMode val="2"/>
<fixed val="true"/>
<ggbscript val="SetValue[F,(2,1)]
"/>
<lineStyle thickness="1" type="0" typeHidden="1" opacity="0"/>
<eigenvectors x0="1" y0="0" z0="1.0" x1="0" y1="1" z1="1.0"/>
<matrix A0="1" A1="1" A2="4.75" A3="0" A4="-2" A5="-1"/>
<eqnStyle style="specific"/>
</element>
<command name="Circle">
<input a0="(3, 1)" a1="r"/>
<output a0="c13"/>
</command>
<element type="conic" label="c13">
<show object="true" label="false" ev="4"/>
<objColor r="255" g="255" b="255" alpha="0.05000000074505806"/>
<layer val="0"/>
<labelOffset x="-1" y="22"/>
<labelMode val="3"/>
<tooltipMode val="2"/>
<fixed val="true"/>
<ggbscript val="SetValue[F,(3,1)]
"/>
<lineStyle thickness="1" type="0" typeHidden="1" opacity="0"/>
<eigenvectors x0="1" y0="0" z0="1.0" x1="0" y1="1" z1="1.0"/>
<matrix A0="1" A1="1" A2="9.75" A3="0" A4="-3" A5="-1"/>
<eqnStyle style="specific"/>
</element>
<command name="Circle">
<input a0="(-3, 0)" a1="r"/>
<output a0="c14"/>
</command>
<element type="conic" label="c14">
<show object="true" label="false" ev="4"/>
<objColor r="255" g="255" b="255" alpha="0.05000000074505806"/>
<layer val="0"/>
<labelOffset x="-5" y="24"/>
<labelMode val="3"/>
<tooltipMode val="2"/>
<fixed val="true"/>
<ggbscript val="SetValue[F,(-3,0)]
"/>
<lineStyle thickness="1" type="0" typeHidden="1" opacity="0"/>
<eigenvectors x0="1" y0="0" z0="1.0" x1="0" y1="1" z1="1.0"/>
<matrix A0="1" A1="1" A2="8.75" A3="0" A4="3" A5="0"/>
<eqnStyle style="specific"/>
</element>
<command name="Circle">
<input a0="(-2, 0)" a1="r"/>
<output a0="c15"/>
</command>
<element type="conic" label="c15">
<show object="true" label="false" ev="4"/>
<objColor r="255" g="255" b="255" alpha="0.05000000074505806"/>
<layer val="0"/>
<labelOffset x="-7" y="22"/>
<labelMode val="3"/>
<tooltipMode val="2"/>
<fixed val="true"/>
<ggbscript val="SetValue[F,(-2,0)]
"/>
<lineStyle thickness="1" type="0" typeHidden="1" opacity="0"/>
<eigenvectors x0="1" y0="0" z0="1.0" x1="0" y1="1" z1="1.0"/>
<matrix A0="1" A1="1" A2="3.75" A3="0" A4="2" A5="0"/>
<eqnStyle style="specific"/>
</element>
<command name="Circle">
<input a0="(-1, 0)" a1="r"/>
<output a0="c16"/>
</command>
<element type="conic" label="c16">
<show object="true" label="false" ev="4"/>
<objColor r="255" g="255" b="255" alpha="0.05000000074505806"/>
<layer val="0"/>
<labelOffset x="-7" y="24"/>
<labelMode val="3"/>
<tooltipMode val="2"/>
<fixed val="true"/>
<ggbscript val="SetValue[F,(-1,0)]
"/>
<lineStyle thickness="1" type="0" typeHidden="1" opacity="0"/>
<eigenvectors x0="1" y0="0" z0="1.0" x1="0" y1="1" z1="1.0"/>
<matrix A0="1" A1="1" A2="0.75" A3="0" A4="1" A5="0"/>
<eqnStyle style="specific"/>
</element>
<command name="Circle">
<input a0="(0, 0)" a1="r"/>
<output a0="c17"/>
</command>
<element type="conic" label="c17">
<show object="true" label="false" ev="4"/>
<objColor r="255" g="255" b="255" alpha="0.05000000074505806"/>
<layer val="0"/>
<labelOffset x="0" y="22"/>
<labelMode val="3"/>
<tooltipMode val="2"/>
<fixed val="true"/>
<ggbscript val="SetValue[F,(0,0)]
"/>
<lineStyle thickness="1" type="0" typeHidden="1" opacity="0"/>
<eigenvectors x0="1" y0="0" z0="1.0" x1="0" y1="1" z1="1.0"/>
<matrix A0="1" A1="1" A2="-0.25" A3="0" A4="0" A5="0"/>
<eqnStyle style="specific"/>
</element>
<command name="Circle">
<input a0="(1, 0)" a1="r"/>
<output a0="c18"/>
</command>
<element type="conic" label="c18">
<show object="true" label="false" ev="4"/>
<objColor r="255" g="255" b="255" alpha="0.05000000074505806"/>
<layer val="0"/>
<labelOffset x="-3" y="20"/>
<labelMode val="3"/>
<tooltipMode val="2"/>
<fixed val="true"/>
<ggbscript val="SetValue[F,(1,0)]
"/>
<lineStyle thickness="1" type="0" typeHidden="1" opacity="0"/>
<eigenvectors x0="1" y0="0" z0="1.0" x1="0" y1="1" z1="1.0"/>
<matrix A0="1" A1="1" A2="0.75" A3="0" A4="-1" A5="0"/>
<eqnStyle style="specific"/>
</element>
<command name="Circle">
<input a0="(2, 0)" a1="r"/>
<output a0="c19"/>
</command>
<element type="conic" label="c19">
<show object="true" label="false" ev="4"/>
<objColor r="255" g="255" b="255" alpha="0.05000000074505806"/>
<layer val="0"/>
<labelOffset x="0" y="23"/>
<labelMode val="3"/>
<tooltipMode val="2"/>
<fixed val="true"/>
<ggbscript val="SetValue[F,(2,0)]
"/>
<lineStyle thickness="1" type="0" typeHidden="1" opacity="0"/>
<eigenvectors x0="1" y0="0" z0="1.0" x1="0" y1="1" z1="1.0"/>
<matrix A0="1" A1="1" A2="3.75" A3="0" A4="-2" A5="0"/>
<eqnStyle style="specific"/>
</element>
<command name="Circle">
<input a0="(-3, -1)" a1="r"/>
<output a0="c21"/>
</command>
<element type="conic" label="c21">
<show object="true" label="false" ev="4"/>
<objColor r="255" g="255" b="255" alpha="0.05000000074505806"/>
<layer val="0"/>
<labelOffset x="-9" y="23"/>
<labelMode val="3"/>
<tooltipMode val="2"/>
<fixed val="true"/>
<ggbscript val="SetValue[F,(-3,-1)]
"/>
<lineStyle thickness="1" type="0" typeHidden="1" opacity="0"/>
<eigenvectors x0="1" y0="0" z0="1.0" x1="0" y1="1" z1="1.0"/>
<matrix A0="1" A1="1" A2="9.75" A3="0" A4="3" A5="1"/>
<eqnStyle style="specific"/>
</element>
<command name="Circle">
<input a0="(3, 0)" a1="r"/>
<output a0="c20"/>
</command>
<element type="conic" label="c20">
<show object="true" label="false" ev="4"/>
<objColor r="255" g="255" b="255" alpha="0.05000000074505806"/>
<layer val="0"/>
<labelOffset x="-3" y="23"/>
<labelMode val="3"/>
<tooltipMode val="2"/>
<fixed val="true"/>
<ggbscript val="SetValue[F,(3,0)]
"/>
<lineStyle thickness="1" type="0" typeHidden="1" opacity="0"/>
<eigenvectors x0="1" y0="0" z0="1.0" x1="0" y1="1" z1="1.0"/>
<matrix A0="1" A1="1" A2="8.75" A3="0" A4="-3" A5="0"/>
<eqnStyle style="specific"/>
</element>
<command name="Circle">
<input a0="(-2, -1)" a1="r"/>
<output a0="c22"/>
</command>
<element type="conic" label="c22">
<show object="true" label="false" ev="4"/>
<objColor r="255" g="255" b="255" alpha="0.05000000074505806"/>
<layer val="0"/>
<labelOffset x="-10" y="21"/>
<labelMode val="3"/>
<tooltipMode val="2"/>
<fixed val="true"/>
<ggbscript val="SetValue[F,(-2,-1)]
"/>
<lineStyle thickness="1" type="0" typeHidden="1" opacity="0"/>
<eigenvectors x0="1" y0="0" z0="1.0" x1="0" y1="1" z1="1.0"/>
<matrix A0="1" A1="1" A2="4.75" A3="0" A4="2" A5="1"/>
<eqnStyle style="specific"/>
</element>
<command name="Circle">
<input a0="(-1, -1)" a1="r"/>
<output a0="c23"/>
</command>
<element type="conic" label="c23">
<show object="true" label="false" ev="4"/>
<objColor r="255" g="255" b="255" alpha="0.05000000074505806"/>
<layer val="0"/>
<labelOffset x="-10" y="21"/>
<labelMode val="3"/>
<tooltipMode val="2"/>
<fixed val="true"/>
<ggbscript val="SetValue[F,(-1,-1)]
"/>
<lineStyle thickness="1" type="0" typeHidden="1" opacity="0"/>
<eigenvectors x0="1" y0="0" z0="1.0" x1="0" y1="1" z1="1.0"/>
<matrix A0="1" A1="1" A2="1.75" A3="0" A4="1" A5="1"/>
<eqnStyle style="specific"/>
</element>
<command name="Circle">
<input a0="(0, -1)" a1="r"/>
<output a0="c24"/>
</command>
<element type="conic" label="c24">
<show object="true" label="false" ev="4"/>
<objColor r="255" g="255" b="255" alpha="0.05000000074505806"/>
<layer val="0"/>
<labelOffset x="-5" y="23"/>
<labelMode val="3"/>
<tooltipMode val="2"/>
<fixed val="true"/>
<ggbscript val="SetValue[F,(0,-1)]
"/>
<lineStyle thickness="1" type="0" typeHidden="1" opacity="0"/>
<eigenvectors x0="1" y0="0" z0="1.0" x1="0" y1="1" z1="1.0"/>
<matrix A0="1" A1="1" A2="0.75" A3="0" A4="0" A5="1"/>
<eqnStyle style="specific"/>
</element>
<command name="Circle">
<input a0="(1, -1)" a1="r"/>
<output a0="c25"/>
</command>
<element type="conic" label="c25">
<show object="true" label="false" ev="4"/>
<objColor r="255" g="255" b="255" alpha="0.05000000074505806"/>
<layer val="0"/>
<labelOffset x="-6" y="22"/>
<labelMode val="3"/>
<tooltipMode val="2"/>
<fixed val="true"/>
<ggbscript val="SetValue[F,(1,-1)]
"/>
<lineStyle thickness="1" type="0" typeHidden="1" opacity="0"/>
<eigenvectors x0="1" y0="0" z0="1.0" x1="0" y1="1" z1="1.0"/>
<matrix A0="1" A1="1" A2="1.75" A3="0" A4="-1" A5="1"/>
<eqnStyle style="specific"/>
</element>
<command name="Circle">
<input a0="(2, -1)" a1="r"/>
<output a0="c26"/>
</command>
<element type="conic" label="c26">
<show object="true" label="false" ev="4"/>
<objColor r="255" g="255" b="255" alpha="0.05000000074505806"/>
<layer val="0"/>
<labelOffset x="-5" y="23"/>
<labelMode val="3"/>
<tooltipMode val="2"/>
<fixed val="true"/>
<ggbscript val="SetValue[F,(2,-1)]
"/>
<lineStyle thickness="1" type="0" typeHidden="1" opacity="0"/>
<eigenvectors x0="1" y0="0" z0="1.0" x1="0" y1="1" z1="1.0"/>
<matrix A0="1" A1="1" A2="4.75" A3="0" A4="-2" A5="1"/>
<eqnStyle style="specific"/>
</element>
<command name="Circle">
<input a0="(3, -1)" a1="r"/>
<output a0="c27"/>
</command>
<element type="conic" label="c27">
<show object="true" label="false" ev="4"/>
<objColor r="255" g="255" b="255" alpha="0.05000000074505806"/>
<layer val="0"/>
<labelOffset x="-7" y="21"/>
<labelMode val="3"/>
<tooltipMode val="2"/>
<fixed val="true"/>
<ggbscript val="SetValue[F,(3,-1)]
"/>
<lineStyle thickness="1" type="0" typeHidden="1" opacity="0"/>
<eigenvectors x0="1" y0="0" z0="1.0" x1="0" y1="1" z1="1.0"/>
<matrix A0="1" A1="1" A2="9.75" A3="0" A4="-3" A5="1"/>
<eqnStyle style="specific"/>
<caption val="(3, -1)"/>
</element>
<command name="Circle">
<input a0="(-1, -2)" a1="r"/>
<output a0="c28"/>
</command>
<element type="conic" label="c28">
<show object="true" label="false" ev="4"/>
<objColor r="255" g="255" b="255" alpha="0.05000000074505806"/>
<layer val="0"/>
<labelOffset x="-10" y="21"/>
<labelMode val="3"/>
<tooltipMode val="2"/>
<fixed val="true"/>
<ggbscript val="SetValue[F,(-1,-2)]
"/>
<lineStyle thickness="1" type="0" typeHidden="1" opacity="0"/>
<eigenvectors x0="1" y0="0" z0="1.0" x1="0" y1="1" z1="1.0"/>
<matrix A0="1" A1="1" A2="4.75" A3="0" A4="1" A5="2"/>
<eqnStyle style="specific"/>
</element>
<command name="Circle">
<input a0="(0, -2)" a1="r"/>
<output a0="c29"/>
</command>
<element type="conic" label="c29">
<show object="true" label="false" ev="4"/>
<objColor r="255" g="255" b="255" alpha="0.05000000074505806"/>
<layer val="0"/>
<labelOffset x="-6" y="21"/>
<labelMode val="3"/>
<tooltipMode val="2"/>
<fixed val="true"/>
<ggbscript val="SetValue[F,(0,-2)]
"/>
<lineStyle thickness="1" type="0" typeHidden="1" opacity="0"/>
<eigenvectors x0="1" y0="0" z0="1.0" x1="0" y1="1" z1="1.0"/>
<matrix A0="1" A1="1" A2="3.75" A3="0" A4="0" A5="2"/>
<eqnStyle style="specific"/>
</element>
<command name="Circle">
<input a0="(1, -2)" a1="r"/>
<output a0="c30"/>
</command>
<element type="conic" label="c30">
<show object="true" label="false" ev="4"/>
<objColor r="255" g="255" b="255" alpha="0.05000000074505806"/>
<layer val="0"/>
<labelOffset x="-5" y="21"/>
<labelMode val="3"/>
<tooltipMode val="2"/>
<fixed val="true"/>
<ggbscript val="SetValue[F,(1,-2)]
"/>
<lineStyle thickness="1" type="0" typeHidden="1" opacity="0"/>
<eigenvectors x0="1" y0="0" z0="1.0" x1="0" y1="1" z1="1.0"/>
<matrix A0="1" A1="1" A2="4.75" A3="0" A4="-1" A5="2"/>
<eqnStyle style="specific"/>
</element>
<command name="Circle">
<input a0="(-1, -3)" a1="r"/>
<output a0="c31"/>
</command>
<element type="conic" label="c31">
<show object="true" label="false" ev="4"/>
<objColor r="255" g="255" b="255" alpha="0.05000000074505806"/>
<layer val="0"/>
<labelOffset x="-10" y="22"/>
<labelMode val="3"/>
<tooltipMode val="2"/>
<fixed val="true"/>
<ggbscript val="SetValue[F,(-1,-3)]
"/>
<lineStyle thickness="1" type="0" typeHidden="1" opacity="0"/>
<eigenvectors x0="1" y0="0" z0="1.0" x1="0" y1="1" z1="1.0"/>
<matrix A0="1" A1="1" A2="9.75" A3="0" A4="1" A5="3"/>
<eqnStyle style="specific"/>
<caption val="(-1, -3)"/>
</element>
<command name="Circle">
<input a0="(0, -3)" a1="r"/>
<output a0="c32"/>
</command>
<element type="conic" label="c32">
<show object="true" label="false" ev="4"/>
<objColor r="255" g="255" b="255" alpha="0.05000000074505806"/>
<layer val="0"/>
<labelOffset x="-7" y="21"/>
<labelMode val="3"/>
<tooltipMode val="2"/>
<fixed val="true"/>
<ggbscript val="SetValue[F,(0,-3)]
"/>
<lineStyle thickness="1" type="0" typeHidden="1" opacity="0"/>
<eigenvectors x0="1" y0="0" z0="1.0" x1="0" y1="1" z1="1.0"/>
<matrix A0="1" A1="1" A2="8.75" A3="0" A4="0" A5="3"/>
<eqnStyle style="specific"/>
</element>
<command name="Circle">
<input a0="(1, -3)" a1="r"/>
<output a0="c33"/>
</command>
<element type="conic" label="c33">
<show object="true" label="false" ev="4"/>
<objColor r="255" g="255" b="255" alpha="0.05000000074505806"/>
<layer val="0"/>
<labelOffset x="-6" y="23"/>
<labelMode val="3"/>
<tooltipMode val="2"/>
<fixed val="true"/>
<ggbscript val="SetValue[F,(1,-3)]
"/>
<lineStyle thickness="1" type="0" typeHidden="1" opacity="0"/>
<eigenvectors x0="1" y0="0" z0="1.0" x1="0" y1="1" z1="1.0"/>
<matrix A0="1" A1="1" A2="9.75" A3="0" A4="-1" A5="3"/>
<eqnStyle style="specific"/>
</element>
<expression label="focusongo" exp="{If[focuson(1) + (1, 0) ∈ checkers, focuson(1) + (2, 0)], If[focuson(1) + (-1, 0) ∈ checkers, focuson(1) + (-2, 0)], If[focuson(1) + (0, 1) ∈ checkers, focuson(1) + (0, 2)], If[focuson(1) + (0, -1) ∈ checkers, focuson(1) + (0, -2)]}" />
<element type="list" label="focusongo">
<show object="false" label="false" ev="4"/>
<objColor r="0" g="100" b="0" alpha="0"/>
<layer val="1"/>
<labelMode val="0"/>
<tooltipMode val="2"/>
<lineStyle thickness="5" type="0" typeHidden="1"/>
<pointSize val="5"/>
<pointStyle val="0"/>
<angleStyle val="0"/>
</element>
<command name="Intersection">
<input a0="focusongo" a1="spaces"/>
<output a0="spacesgo1"/>
</command>
<element type="list" label="spacesgo1">
<show object="false" label="false" ev="4"/>
<objColor r="0" g="100" b="0" alpha="0"/>
<layer val="2"/>
<labelMode val="0"/>
<tooltipMode val="2"/>
<lineStyle thickness="5" type="0" typeHidden="1"/>
<listType val="point"/>
<pointSize val="9"/>
<pointStyle val="3"/>
<angleStyle val="0"/>
</element>
<expression label="F" exp="(3, 3)" type="point"/>
<element type="point" label="F">
<show object="false" label="true" ev="4"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="9"/>
<labelMode val="0"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<ggbscript onUpdate="RunClickScript(buttonMove)"/>
<coords x="3" y="3" z="1"/>
<pointSize val="9"/>
<pointStyle val="4"/>
</element>
<expression label="S" exp="(3, 3)" type="point"/>
<element type="point" label="S">
<show object="false" label="true" ev="4"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="9"/>
<labelMode val="0"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<coords x="3" y="3" z="1"/>
<pointSize val="9"/>
<pointStyle val="4"/>
</element>
<expression label="T" exp="(3, 3)" type="point"/>
<element type="point" label="T">
<show object="false" label="true" ev="4"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="9"/>
<labelMode val="0"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<coords x="3" y="3" z="1"/>
<pointSize val="9"/>
<pointStyle val="4"/>
</element>
<element type="button" label="buttonRestart">
<show object="true" label="true" ev="2"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<bgColor r="191" g="255" b="0" alpha="255"/>
<layer val="7"/>
<labelOffset x="294" y="647"/>
<labelMode val="3"/>
<tooltipMode val="2"/>
<fixed val="true"/>
<auxiliary val="true"/>
<ggbscript val="spaces={(0,0)}

F=(3,3)
S=(3,3)
T=(3,3)

focuson={}
Gamelog={}

showLog=false
showCoordinate=false
showRule=false
showResult=false
showPattern=false"/>
<font serif="false" sizeM="3" size="40" style="1"/>
<dimensions width="160" height="60" />
<startPoint x="-1" y="-4.6" z="1"/>
<caption val="Restart"/>
</element>
<command name="RemoveUndefined">
<input a0="Sequence[If[(focuson(1) + spacesgo1(k)) / 2 ∈ checkers, spacesgo1(k)], k, 1, Length[spacesgo1]]"/>
<output a0="spacesgo"/>
</command>
<element type="list" label="spacesgo">
<show object="false" label="false" ev="4"/>
<objColor r="0" g="100" b="0" alpha="0"/>
<layer val="2"/>
<labelMode val="0"/>
<tooltipMode val="2"/>
<lineStyle thickness="5" type="0" typeHidden="1"/>
<listType val="point"/>
<pointSize val="9"/>
<pointStyle val="3"/>
<angleStyle val="0"/>
</element>
<command name="Polygon">
<input a0="{(-1.5, -3.5), (-0.5, -3.5), (-0.5, -4.5), (0.5, -4.5), (0.5, -3.5), (1.5, -3.5), (1.5, -2.5), (2.5, -2.5), (2.5, -1.5), (3.5, -1.5), (3.5, -0.5), (4.5, -0.5), (4.5, 0.5), (3.5, 0.5), (3.5, 1.5), (2.5, 1.5), (2.5, 2.5), (1.5, 2.5), (1.5, 3.5), (0.5, 3.5), (0.5, 4.5), (-0.5, 4.5), (-0.5, 3.5), (-1.5, 3.5), (-1.5, 2.5), (-2.5, 2.5), (-2.5, 1.5), (-3.5, 1.5), (-3.5, 0.5), (-4.5, 0.5), (-4.5, -0.5), (-3.5, -0.5), (-3.5, -1.5), (-2.5, -1.5), (-2.5, -2.5), (-1.5, -2.5), (-1.5, -3.5)}"/>
<output a0="polyBoardEdge"/>
</command>
<element type="polygon" label="polyBoardEdge">
<lineStyle thickness="13" type="0" typeHidden="1" opacity="178"/>
<show object="true" label="false" ev="4"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="3"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<ggbscript val="F=(2,2)
S=(2,2)
T=(2,2)
focuson={}
SelectObjects()"/>
</element>
<element type="point" label="A">
<show object="false" label="false" ev="4"/>
<objColor r="77" g="77" b="255" alpha="0"/>
<layer val="8"/>
<labelMode val="0"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<coords x="2" y="-3" z="1"/>
<pointSize val="9"/>
<pointStyle val="1"/>
</element>
<command name="Polygon">
<input a0="{Corner[1], Corner[2], Corner[3], Corner[4]}"/>
<output a0="polyBackground"/>
</command>
<element type="polygon" label="polyBackground">
<lineStyle thickness="5" type="0" typeHidden="1" opacity="178"/>
<show object="true" label="false" ev="4"/>
<objColor r="255" g="215" b="0" alpha="0.5"/>
<layer val="0"/>
<labelMode val="0"/>
<tooltipMode val="2"/>
<ggbscript val="S=(2,2)
T=(2,2)
focuson={}
SelectObjects()
showPattern=false"/>
</element>
<command name="Length">
<input a0="checkers"/>
<output a0="numR"/>
</command>
<element type="numeric" label="numR">
<value val="40"/>
<objColor r="0" g="0" b="0" alpha="0.10000000149011612"/>
</element>
<element type="button" label="buttonMove">
<show object="false" label="true"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="8"/>
<labelOffset x="101" y="187"/>
<labelMode val="3"/>
<tooltipMode val="2"/>
<fixed val="true"/>
<auxiliary val="true"/>
<ggbscript val="SetValue[T,(3,3)]
If[F∈checkers,Execute({"SetValue[focuson,{F}]","SetValue[S,F]"})]
If[F∈spacesgo,SetValue[T,F]]

If[T∈spacesgo,SetValue(Gamelog,CopyFreeObject(If(Last(Gamelog(nGL))=={S},Join(First(Gamelog,nGL-1),{Join(Gamelog(nGL),{T})}),Append(Gamelog,{S,T}))))]

If[T∈spacesgo,Execute({"SetValue[spaces,Append(spaces,S)]","SetValue[spaces,Remove(spaces,{T})]","SetValue[spaces,Append(spaces,(S+T)/2)]","SetValue[focuson,{F}]"})]
If[spacesgo=={},SetValue[focuson,{}],SetValue[S,F]]

SelectObjects()
If[allgo=={},SetValue(showResult,true)]
"/>
<font serif="false" sizeM="2" size="20" style="0"/>
<caption val="MoveScript"/>
</element>
<command name="Length">
<input a0="Gamelog"/>
<output a0="nGL"/>
</command>
<element type="numeric" label="nGL">
<value val="0"/>
<objColor r="0" g="0" b="0" alpha="0.10000000149011612"/>
</element>
<expression label="showCoordinate" exp="false"/>
<element type="boolean" label="showCoordinate">
<value val="false"/>
<show object="true" label="true"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="7"/>
<labelOffset x="542" y="733"/>
<labelMode val="3"/>
<checkbox fixed="true"/>
<caption val="Coordinate"/>
</element>
<command name="Sequence">
<input a0="Circle[checkers(k), 0.375]" a1="k" a2="1" a3="Length[checkers]"/>
<output a0="checkersC"/>
</command>
<element type="list" label="checkersC">
<show object="true" label="false" ev="4"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="2"/>
<labelMode val="0"/>
<tooltipMode val="2"/>
<selectionAllowed val="false"/>
<lineStyle thickness="3" type="-1" typeHidden="1"/>
<pointSize val="5"/>
<pointStyle val="0"/>
<angleStyle val="0"/>
</element>
<command name="Sequence">
<input a0="Circle[spacesgo(k), 0.375]" a1="k" a2="1" a3="Length[spacesgo]"/>
<output a0="spacesgoC"/>
</command>
<element type="list" label="spacesgoC">
<show object="true" label="false" ev="4"/>
<objColor r="255" g="255" b="0" alpha="0.5"/>
<layer val="3"/>
<labelMode val="0"/>
<tooltipMode val="2"/>
<selectionAllowed val="false"/>
<lineStyle thickness="1" type="0" typeHidden="1"/>
<listType val="conic"/>
<pointSize val="5"/>
<pointStyle val="0"/>
<angleStyle val="0"/>
</element>
<expression label="focusonC" exp="{Circle[focuson(1), 0.375]}" />
<element type="list" label="focusonC">
<show object="true" label="false" ev="4"/>
<objColor r="0" g="0" b="255" alpha="0.4000000059604645"/>
<layer val="3"/>
<labelMode val="0"/>
<tooltipMode val="2"/>
<lineStyle thickness="1" type="0" typeHidden="1" opacity="178"/>
<pointSize val="5"/>
<pointStyle val="0"/>
<angleStyle val="0"/>
</element>
<command name="Sequence">
<input a0="Circle[spaces(k), 0.375]" a1="k" a2="1" a3="Length[spaces]"/>
<output a0="spacesC"/>
</command>
<element type="list" label="spacesC">
<show object="true" label="false" ev="4"/>
<objColor r="0" g="0" b="0" alpha="0.75"/>
<layer val="2"/>
<labelMode val="0"/>
<tooltipMode val="2"/>
<selectionAllowed val="false"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<pointSize val="5"/>
<pointStyle val="0"/>
<angleStyle val="0"/>
</element>
<element type="boolean" label="showRule">
<value val="false"/>
<show object="false" label="true"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelOffset x="5" y="65"/>
<labelMode val="0"/>
<checkbox fixed="true"/>
</element>
<expression label="showLog" exp="false"/>
<element type="boolean" label="showLog">
<value val="false"/>
<show object="true" label="true"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="7"/>
<labelOffset x="542" y="649"/>
<labelMode val="3"/>
<checkbox fixed="true"/>
<caption val="GameLog"/>
</element>
<expression label="textMoves" exp=""Moves
 " + nGL + """ />
<element type="text" label="textMoves">
<show object="true" label="false" ev="8"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="3"/>
<labelMode val="0"/>
<tooltipMode val="2"/>
<selectionAllowed val="false"/>
<font serif="false" sizeM="2" size="20" style="1"/>
<startPoint x="-4" y="-3" z="1"/>
</element>
<expression label="rankCht" exp="{"曠世奇才", "天才", "大師", "專家", "聰明", "很好", "不錯", "凡人", "無"}"/>
<element type="list" label="rankCht">
<show object="false" label="false" ev="4"/>
<objColor r="0" g="100" b="0" alpha="0"/>
<layer val="8"/>
<labelMode val="0"/>
<tooltipMode val="2"/>
<animation step="1" speed="1" type="0" playing="false"/>
<lineStyle thickness="5" type="0" typeHidden="1"/>
<pointSize val="5"/>
<pointStyle val="0"/>
<angleStyle val="0"/>
<symbolic val="true" />
</element>
<expression label="rankEng" exp="{"Genius of geniuses", "Genius", "Master", "Expert", "Smart", "Very Good", "Not Bad", "Normal", "None"}"/>
<element type="list" label="rankEng">
<show object="false" label="false" ev="4"/>
<objColor r="0" g="100" b="0" alpha="0"/>
<layer val="8"/>
<labelMode val="0"/>
<tooltipMode val="2"/>
<animation step="1" speed="1" type="0" playing="false"/>
<lineStyle thickness="5" type="0" typeHidden="1"/>
<pointSize val="5"/>
<pointStyle val="0"/>
<angleStyle val="0"/>
</element>
<element type="button" label="buttonRule">
<show object="true" label="true"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<bgColor r="208" g="240" b="192" alpha="255"/>
<layer val="9"/>
<labelOffset x="294" y="731"/>
<labelMode val="0"/>
<tooltipMode val="2"/>
<fixed val="true"/>
<auxiliary val="true"/>
<ggbscript val="showRule=!showRule
showLog=false
showCoordinate=false"/>
<font serif="false" sizeM="3" size="40" style="1"/>
<dimensions width="160" height="50" />
<startPoint x="-1" y="-5.5" z="1"/>
<caption val="Rules"/>
</element>
<command name="Polygon">
<input a0="{Corner[1], Corner[2], Corner[3], Corner[4]}"/>
<output a0="polyMask"/>
</command>
<element type="polygon" label="polyMask">
<lineStyle thickness="5" type="0" typeHidden="1" opacity="178"/>
<show object="true" label="false" ev="4"/>
<condition showObject="showRule ∨ showResult"/>
<objColor r="0" g="0" b="0" alpha="0.949999988079071"/>
<layer val="8"/>
<labelMode val="0"/>
<tooltipMode val="2"/>
<ggbscript val="showRule=false
showResult=false"/>
</element>
<expression label="textRule" exp=""獨立鑽石棋遊戲玩法似中國跳棋,但不能走步,只能
跳。棋子只能跳過相鄰的棋子到空位上,並且把被跳
過的棋子吃掉。棋子可以沿格線橫、縱方向跳,但是
不能斜跳,剩下越少棋子越好。
此為鑽石盤面有41孔位,最佳結果是在最後只留下一
個棋子在盤面的正中央。

Peg solitaire (or Solo Noble) is a board game for one 
player involving movement of pegs on a board with 
holes.You have to remove the pegs one after the other 
by jumping horizontally or vertically over one. 
On the Diamond board, 41 holes is to start with a hole 
at centre position and to end with a single peg in the 
centre hole.""/>
<element type="text" label="textRule">
<show object="false" label="false" ev="40"/>
<condition showObject="showRule"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<bgColor r="0" g="0" b="0" alpha="255"/>
<layer val="9"/>
<labelMode val="0"/>
<tooltipMode val="2"/>
<selectionAllowed val="false"/>
<font serif="false" sizeM="1.4" size="8" style="1"/>
<startPoint x="-4.8" y="3.5" z="1"/>
</element>
<element type="point" label="P1">
<show object="true" label="true" ev="4"/>
<condition showObject="showCoordinate"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="2"/>
<labelOffset x="-31" y="8"/>
<labelMode val="2"/>
<tooltipMode val="2"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<selectionAllowed val="false"/>
<coords x="-1" y="3" z="1"/>
<pointSize val="1"/>
<pointStyle val="0"/>
</element>
<element type="point" label="P2">
<show object="true" label="true" ev="4"/>
<condition showObject="showCoordinate"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="2"/>
<labelOffset x="-26" y="8"/>
<labelMode val="2"/>
<tooltipMode val="2"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<selectionAllowed val="false"/>
<coords x="0" y="3" z="1"/>
<pointSize val="1"/>
<pointStyle val="0"/>
</element>
<element type="point" label="P3">
<show object="true" label="true" ev="4"/>
<condition showObject="showCoordinate"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="2"/>
<labelOffset x="-28" y="7"/>
<labelMode val="2"/>
<tooltipMode val="2"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<selectionAllowed val="false"/>
<coords x="1" y="3" z="1"/>
<pointSize val="1"/>
<pointStyle val="0"/>
</element>
<element type="point" label="P4">
<show object="true" label="true" ev="4"/>
<condition showObject="showCoordinate"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="2"/>
<labelOffset x="-33" y="8"/>
<labelMode val="2"/>
<tooltipMode val="2"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<selectionAllowed val="false"/>
<coords x="-1" y="2" z="1"/>
<pointSize val="1"/>
<pointStyle val="0"/>
</element>
<element type="point" label="P5">
<show object="true" label="true" ev="4"/>
<condition showObject="showCoordinate"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="2"/>
<labelOffset x="-27" y="8"/>
<labelMode val="2"/>
<tooltipMode val="2"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<selectionAllowed val="false"/>
<coords x="0" y="2" z="1"/>
<pointSize val="1"/>
<pointStyle val="0"/>
</element>
<element type="point" label="P6">
<show object="true" label="true" ev="4"/>
<condition showObject="showCoordinate"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="2"/>
<labelOffset x="-28" y="7"/>
<labelMode val="2"/>
<tooltipMode val="2"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<selectionAllowed val="false"/>
<coords x="1" y="2" z="1"/>
<pointSize val="1"/>
<pointStyle val="0"/>
</element>
<element type="point" label="P7">
<show object="true" label="true" ev="4"/>
<condition showObject="showCoordinate"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="2"/>
<labelOffset x="-31" y="6"/>
<labelMode val="2"/>
<tooltipMode val="2"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<selectionAllowed val="false"/>
<coords x="-3" y="1" z="1"/>
<pointSize val="1"/>
<pointStyle val="0"/>
</element>
<element type="point" label="P8">
<show object="true" label="true" ev="4"/>
<condition showObject="showCoordinate"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="2"/>
<labelOffset x="-27" y="7"/>
<labelMode val="2"/>
<tooltipMode val="2"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<selectionAllowed val="false"/>
<coords x="-2" y="1" z="1"/>
<pointSize val="1"/>
<pointStyle val="0"/>
</element>
<element type="point" label="P9">
<show object="true" label="true" ev="4"/>
<condition showObject="showCoordinate"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="2"/>
<labelOffset x="-30" y="7"/>
<labelMode val="2"/>
<tooltipMode val="2"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<selectionAllowed val="false"/>
<coords x="-1" y="1" z="1"/>
<pointSize val="1"/>
<pointStyle val="0"/>
</element>
<element type="point" label="P10">
<show object="true" label="true" ev="4"/>
<condition showObject="showCoordinate"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="2"/>
<labelOffset x="-28" y="8"/>
<labelMode val="2"/>
<tooltipMode val="2"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<selectionAllowed val="false"/>
<coords x="0" y="1" z="1"/>
<pointSize val="1"/>
<pointStyle val="0"/>
</element>
<element type="point" label="P11">
<show object="true" label="true" ev="4"/>
<condition showObject="showCoordinate"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="2"/>
<labelOffset x="-27" y="7"/>
<labelMode val="2"/>
<tooltipMode val="2"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<selectionAllowed val="false"/>
<coords x="1" y="1" z="1"/>
<pointSize val="1"/>
<pointStyle val="0"/>
</element>
<element type="point" label="P12">
<show object="true" label="true" ev="4"/>
<condition showObject="showCoordinate"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="2"/>
<labelOffset x="-26" y="8"/>
<labelMode val="2"/>
<tooltipMode val="2"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<selectionAllowed val="false"/>
<coords x="2" y="1" z="1"/>
<pointSize val="1"/>
<pointStyle val="0"/>
</element>
<element type="point" label="P13">
<show object="true" label="true" ev="4"/>
<condition showObject="showCoordinate"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="2"/>
<labelOffset x="-27" y="7"/>
<labelMode val="2"/>
<tooltipMode val="2"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<selectionAllowed val="false"/>
<coords x="3" y="1" z="1"/>
<pointSize val="1"/>
<pointStyle val="0"/>
</element>
<element type="point" label="P14">
<show object="true" label="true" ev="4"/>
<condition showObject="showCoordinate"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="2"/>
<labelOffset x="-31" y="6"/>
<labelMode val="2"/>
<tooltipMode val="2"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<selectionAllowed val="false"/>
<coords x="-3" y="0" z="1"/>
<pointSize val="1"/>
<pointStyle val="0"/>
</element>
<element type="point" label="P15">
<show object="true" label="true" ev="4"/>
<condition showObject="showCoordinate"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="2"/>
<labelOffset x="-31" y="7"/>
<labelMode val="2"/>
<tooltipMode val="2"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<selectionAllowed val="false"/>
<coords x="-2" y="0" z="1"/>
<pointSize val="1"/>
<pointStyle val="0"/>
</element>
<element type="point" label="P16">
<show object="true" label="true" ev="4"/>
<condition showObject="showCoordinate"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="2"/>
<labelOffset x="-31" y="6"/>
<labelMode val="2"/>
<tooltipMode val="2"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<selectionAllowed val="false"/>
<coords x="-1" y="0" z="1"/>
<pointSize val="1"/>
<pointStyle val="0"/>
</element>
<element type="point" label="P17">
<show object="true" label="true" ev="4"/>
<condition showObject="showCoordinate"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="2"/>
<labelOffset x="-27" y="8"/>
<labelMode val="2"/>
<tooltipMode val="2"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<selectionAllowed val="false"/>
<coords x="0" y="0" z="1"/>
<pointSize val="1"/>
<pointStyle val="0"/>
</element>
<element type="point" label="P18">
<show object="true" label="true" ev="4"/>
<condition showObject="showCoordinate"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="2"/>
<labelOffset x="-27" y="9"/>
<labelMode val="2"/>
<tooltipMode val="2"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<selectionAllowed val="false"/>
<coords x="1" y="0" z="1"/>
<pointSize val="1"/>
<pointStyle val="0"/>
</element>
<element type="point" label="P19">
<show object="true" label="true" ev="4"/>
<condition showObject="showCoordinate"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="2"/>
<labelOffset x="-28" y="8"/>
<labelMode val="2"/>
<tooltipMode val="2"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<selectionAllowed val="false"/>
<coords x="2" y="0" z="1"/>
<pointSize val="1"/>
<pointStyle val="0"/>
</element>
<element type="point" label="P20">
<show object="true" label="true" ev="4"/>
<condition showObject="showCoordinate"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="2"/>
<labelOffset x="-25" y="10"/>
<labelMode val="2"/>
<tooltipMode val="2"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<selectionAllowed val="false"/>
<coords x="3" y="0" z="1"/>
<pointSize val="1"/>
<pointStyle val="0"/>
</element>
<element type="point" label="P21">
<show object="true" label="true" ev="4"/>
<condition showObject="showCoordinate"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="2"/>
<labelOffset x="-34" y="6"/>
<labelMode val="2"/>
<tooltipMode val="2"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<selectionAllowed val="false"/>
<coords x="-3" y="-1" z="1"/>
<pointSize val="1"/>
<pointStyle val="0"/>
</element>
<element type="point" label="P22">
<show object="true" label="true" ev="4"/>
<condition showObject="showCoordinate"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="2"/>
<labelOffset x="-34" y="6"/>
<labelMode val="2"/>
<tooltipMode val="2"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<selectionAllowed val="false"/>
<coords x="-2" y="-1" z="1"/>
<pointSize val="1"/>
<pointStyle val="0"/>
</element>
<element type="point" label="P23">
<show object="true" label="true" ev="4"/>
<condition showObject="showCoordinate"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="2"/>
<labelOffset x="-34" y="9"/>
<labelMode val="2"/>
<tooltipMode val="2"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<selectionAllowed val="false"/>
<coords x="-1" y="-1" z="1"/>
<pointSize val="1"/>
<pointStyle val="0"/>
</element>
<element type="point" label="P24">
<show object="true" label="true" ev="4"/>
<condition showObject="showCoordinate"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="2"/>
<labelOffset x="-30" y="8"/>
<labelMode val="2"/>
<tooltipMode val="2"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<selectionAllowed val="false"/>
<coords x="0" y="-1" z="1"/>
<pointSize val="1"/>
<pointStyle val="0"/>
</element>
<element type="point" label="P25">
<show object="true" label="true" ev="4"/>
<condition showObject="showCoordinate"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="2"/>
<labelOffset x="-32" y="7"/>
<labelMode val="2"/>
<tooltipMode val="2"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<selectionAllowed val="false"/>
<coords x="1" y="-1" z="1"/>
<pointSize val="1"/>
<pointStyle val="0"/>
</element>
<element type="point" label="P26">
<show object="true" label="true" ev="4"/>
<condition showObject="showCoordinate"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="2"/>
<labelOffset x="-32" y="7"/>
<labelMode val="2"/>
<tooltipMode val="2"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<selectionAllowed val="false"/>
<coords x="2" y="-1" z="1"/>
<pointSize val="1"/>
<pointStyle val="0"/>
</element>
<element type="point" label="P27">
<show object="true" label="true" ev="4"/>
<condition showObject="showCoordinate"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="2"/>
<labelOffset x="-31" y="7"/>
<labelMode val="2"/>
<tooltipMode val="2"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<selectionAllowed val="false"/>
<coords x="3" y="-1" z="1"/>
<pointSize val="1"/>
<pointStyle val="0"/>
</element>
<element type="point" label="P28">
<show object="true" label="true" ev="4"/>
<condition showObject="showCoordinate"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="2"/>
<labelOffset x="-35" y="6"/>
<labelMode val="2"/>
<tooltipMode val="2"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<selectionAllowed val="false"/>
<coords x="-1" y="-2" z="1"/>
<pointSize val="1"/>
<pointStyle val="0"/>
</element>
<element type="point" label="P29">
<show object="true" label="true" ev="4"/>
<condition showObject="showCoordinate"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="2"/>
<labelOffset x="-31" y="7"/>
<labelMode val="2"/>
<tooltipMode val="2"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<selectionAllowed val="false"/>
<coords x="0" y="-2" z="1"/>
<pointSize val="1"/>
<pointStyle val="0"/>
</element>
<element type="point" label="P30">
<show object="true" label="true" ev="4"/>
<condition showObject="showCoordinate"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="2"/>
<labelOffset x="-31" y="7"/>
<labelMode val="2"/>
<tooltipMode val="2"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<selectionAllowed val="false"/>
<coords x="1" y="-2" z="1"/>
<pointSize val="1"/>
<pointStyle val="0"/>
</element>
<element type="point" label="P31">
<show object="true" label="true" ev="4"/>
<condition showObject="showCoordinate"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="2"/>
<labelOffset x="-35" y="7"/>
<labelMode val="2"/>
<tooltipMode val="2"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<selectionAllowed val="false"/>
<coords x="-1" y="-3" z="1"/>
<pointSize val="1"/>
<pointStyle val="0"/>
</element>
<element type="point" label="P32">
<show object="true" label="true" ev="4"/>
<condition showObject="showCoordinate"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="2"/>
<labelOffset x="-29" y="7"/>
<labelMode val="2"/>
<tooltipMode val="2"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<selectionAllowed val="false"/>
<coords x="0" y="-3" z="1"/>
<pointSize val="1"/>
<pointStyle val="0"/>
</element>
<element type="point" label="P33">
<show object="true" label="true" ev="4"/>
<condition showObject="showCoordinate"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="2"/>
<labelOffset x="-31" y="8"/>
<labelMode val="2"/>
<tooltipMode val="2"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<selectionAllowed val="false"/>
<coords x="1" y="-3" z="1"/>
<pointSize val="1"/>
<pointStyle val="0"/>
</element>
<command name="Unique">
<input a0="Flatten[Sequence[{If[checkers(k) + (1, 0) ∈ checkers, checkers(k) + (2, 0)], If[checkers(k) + (-1, 0) ∈ checkers, checkers(k) + (-2, 0)], If[checkers(k) + (0, -1) ∈ checkers, checkers(k) + (0, -2)], If[checkers(k) + (0, 1) ∈ checkers, checkers(k) + (0, 2)]}, k, 1, Length[checkers]]]"/>
<output a0="allcheckersgo"/>
</command>
<element type="list" label="allcheckersgo">
<show object="false" label="false" ev="4"/>
<objColor r="0" g="100" b="0" alpha="0"/>
<layer val="9"/>
<labelMode val="0"/>
<lineStyle thickness="5" type="0" typeHidden="1"/>
<pointSize val="5"/>
<pointStyle val="0"/>
<angleStyle val="0"/>
</element>
<command name="Intersection">
<input a0="allcheckersgo" a1="spaces"/>
<output a0="allgo"/>
</command>
<element type="list" label="allgo">
<show object="false" label="false" ev="4"/>
<objColor r="0" g="100" b="0" alpha="0"/>
<layer val="8"/>
<labelMode val="0"/>
<ggbscript onUpdate="If[allgo=={},SetValue(showResult,true)]"/>
<lineStyle thickness="5" type="0" typeHidden="1"/>
<pointSize val="5"/>
<pointStyle val="0"/>
<angleStyle val="0"/>
</element>
<expression label="showResult" exp="false"/>
<element type="boolean" label="showResult">
<value val="false"/>
<show object="false" label="true"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<checkbox fixed="true"/>
</element>
<element type="button" label="buttonBack">
<show object="true" label="true"/>
<condition showObject="showResult"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="9"/>
<labelOffset x="299" y="733"/>
<labelMode val="0"/>
<tooltipMode val="2"/>
<fixed val="true"/>
<auxiliary val="true"/>
<ggbscript val="showResult=false"/>
<font serif="false" sizeM="3" size="40" style="1"/>
<dimensions width="160" height="50" />
<startPoint x="-1" y="-5.5" z="1"/>
<caption val="Back"/>
</element>
<command name="Circle">
<input a0="(2, -2)" a1="r"/>
<output a0="c37"/>
</command>
<element type="conic" label="c37">
<show object="true" label="false" ev="4"/>
<objColor r="255" g="255" b="255" alpha="0.05000000074505806"/>
<layer val="0"/>
<labelMode val="0"/>
<tooltipMode val="2"/>
<fixed val="true"/>
<ggbscript val="SetValue[F,(2,-2)]"/>
<lineStyle thickness="1" type="0" typeHidden="1" opacity="0"/>
<eigenvectors x0="1" y0="0" z0="1.0" x1="0" y1="1" z1="1.0"/>
<matrix A0="1" A1="1" A2="7.75" A3="0" A4="-2" A5="2"/>
<eqnStyle style="specific"/>
</element>
<command name="Circle">
<input a0="(-2, -2)" a1="r"/>
<output a0="c36"/>
</command>
<element type="conic" label="c36">
<show object="true" label="false" ev="4"/>
<objColor r="255" g="255" b="255" alpha="0.05000000074505806"/>
<layer val="0"/>
<labelMode val="0"/>
<tooltipMode val="2"/>
<fixed val="true"/>
<ggbscript val="SetValue[F,(-2,-2)]"/>
<lineStyle thickness="1" type="0" typeHidden="1" opacity="0"/>
<eigenvectors x0="1" y0="0" z0="1.0" x1="0" y1="1" z1="1.0"/>
<matrix A0="1" A1="1" A2="7.75" A3="0" A4="2" A5="2"/>
<eqnStyle style="specific"/>
</element>
<command name="Circle">
<input a0="(2, 2)" a1="r"/>
<output a0="c35"/>
</command>
<element type="conic" label="c35">
<show object="true" label="false" ev="4"/>
<objColor r="255" g="255" b="255" alpha="0.05000000074505806"/>
<layer val="0"/>
<labelMode val="0"/>
<tooltipMode val="2"/>
<fixed val="true"/>
<ggbscript val="SetValue[F,(2,2)]"/>
<lineStyle thickness="1" type="0" typeHidden="1" opacity="0"/>
<eigenvectors x0="1" y0="0" z0="1.0" x1="0" y1="1" z1="1.0"/>
<matrix A0="1" A1="1" A2="7.75" A3="0" A4="-2" A5="-2"/>
<eqnStyle style="specific"/>
</element>
<command name="Circle">
<input a0="(-2, 2)" a1="r"/>
<output a0="c34"/>
</command>
<element type="conic" label="c34">
<show object="true" label="false" ev="4"/>
<objColor r="255" g="255" b="255" alpha="0.05000000074505806"/>
<layer val="0"/>
<labelMode val="0"/>
<tooltipMode val="2"/>
<fixed val="true"/>
<ggbscript val="SetValue[F,(-2,2)]"/>
<lineStyle thickness="1" type="0" typeHidden="1" opacity="0"/>
<eigenvectors x0="1" y0="0" z0="1.0" x1="0" y1="1" z1="1.0"/>
<matrix A0="1" A1="1" A2="7.75" A3="0" A4="2" A5="-2"/>
<eqnStyle style="specific"/>
</element>
<element type="point" label="P34">
<show object="true" label="true" ev="4"/>
<condition showObject="showCoordinate"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="2"/>
<labelOffset x="-33" y="7"/>
<labelMode val="2"/>
<tooltipMode val="2"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<selectionAllowed val="false"/>
<coords x="-2" y="2" z="1"/>
<pointSize val="1"/>
<pointStyle val="0"/>
</element>
<element type="point" label="P36">
<show object="true" label="true" ev="4"/>
<condition showObject="showCoordinate"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="2"/>
<labelOffset x="-36" y="9"/>
<labelMode val="2"/>
<tooltipMode val="2"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<selectionAllowed val="false"/>
<coords x="-2" y="-2" z="1"/>
<pointSize val="1"/>
<pointStyle val="0"/>
</element>
<element type="point" label="P37">
<show object="true" label="true" ev="4"/>
<condition showObject="showCoordinate"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="2"/>
<labelOffset x="-30" y="9"/>
<labelMode val="2"/>
<tooltipMode val="2"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<selectionAllowed val="false"/>
<coords x="2" y="-2" z="1"/>
<pointSize val="1"/>
<pointStyle val="0"/>
</element>
<element type="point" label="P35">
<show object="true" label="true" ev="4"/>
<condition showObject="showCoordinate"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="2"/>
<labelOffset x="-27" y="7"/>
<labelMode val="2"/>
<tooltipMode val="2"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<selectionAllowed val="false"/>
<coords x="2" y="2" z="1"/>
<pointSize val="1"/>
<pointStyle val="0"/>
</element>
<expression label="showPattern" exp="false"/>
<element type="boolean" label="showPattern">
<value val="false"/>
<show object="false" label="true"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<checkbox fixed="true"/>
</element>
<expression label="textLog" exp=""\ \ You\ have\ spent\ " + (LaTeX[nGL]) + " \ moves.\ \ \ \ \\
\\\\" + (LaTeX[If[nGL ≥ 1, "1. " + (Gamelog(1)), ""]]) + "\\" + (LaTeX[If[nGL ≥ 2, "2. " + (Gamelog(2)), ""]]) + "\\" + (LaTeX[If[nGL ≥ 3, "3. " + (Gamelog(3)), ""]]) + "\\" + (LaTeX[If[nGL ≥ 4, "4. " + (Gamelog(4)), ""]]) + "\\" + (LaTeX[If[nGL ≥ 5, "5. " + (Gamelog(5)), ""]]) + "\\" + (LaTeX[If[nGL ≥ 6, "6. " + (Gamelog(6)), ""]]) + "\\" + (LaTeX[If[nGL ≥ 7, "7. " + (Gamelog(7)), ""]]) + "\\" + (LaTeX[If[nGL ≥ 8, "8. " + (Gamelog(8)), ""]]) + "\\" + (LaTeX[If[nGL ≥ 9, "9. " + (Gamelog(9)), ""]]) + "\\" + (LaTeX[If[nGL ≥ 10, "10. " + (Gamelog(10)), ""]]) + "\\" + (LaTeX[If[nGL ≥ 11, "11. " + (Gamelog(11)), ""]]) + "\\" + (LaTeX[If[nGL ≥ 12, "12. " + (Gamelog(12)), ""]]) + "\\" + (LaTeX[If[nGL ≥ 13, "13. " + (Gamelog(13)), ""]]) + "\\" + (LaTeX[If[nGL ≥ 14, "14. " + (Gamelog(14)), ""]]) + "\\" + (LaTeX[If[nGL ≥ 15, "15. " + (Gamelog(15)), ""]]) + "\\" + (LaTeX[If[nGL ≥ 16, "16. " + (Gamelog(16)), ""]]) + "\\" + (LaTeX[If[nGL ≥ 17, "17. " + (Gamelog(17)), ""]]) + "\\" + (LaTeX[If[nGL ≥ 18, "18. " + (Gamelog(18)), ""]]) + "\\" + (LaTeX[If[nGL ≥ 19, "19. " + (Gamelog(19)), ""]]) + "\\" + (LaTeX[If[nGL ≥ 20, "20. " + (Gamelog(20)), ""]]) + "\\" + (LaTeX[If[nGL ≥ 21, "21. " + (Gamelog(21)), ""]]) + "\\" + (LaTeX[If[nGL ≥ 22, "22. " + (Gamelog(22)), ""]]) + "\\" + (LaTeX[If[nGL ≥ 23, "23. " + (Gamelog(23)), ""]]) + "\\" + (LaTeX[If[nGL ≥ 24, "24. " + (Gamelog(24)), ""]]) + "\\" + (LaTeX[If[nGL ≥ 25, "25. " + (Gamelog(25)), ""]]) + "\\" + (LaTeX[If[nGL ≥ 26, "26. " + (Gamelog(26)), ""]]) + "\\" + (LaTeX[If[nGL ≥ 27, "27. " + (Gamelog(27)), ""]]) + "\\" + (LaTeX[If[nGL ≥ 28, "28. " + (Gamelog(28)), ""]]) + "\\" + (LaTeX[If[nGL ≥ 29, "29. " + (Gamelog(29)), ""]]) + "\\" + (LaTeX[If[nGL ≥ 30, "30. " + (Gamelog(30)), ""]]) + "\\" + (LaTeX[If[nGL ≥ 31, "31. " + (Gamelog(31)), ""]]) + "\\" + (LaTeX[If[nGL ≥ 32, "32. " + (Gamelog(32)), ""]]) + "\\"" />
<element type="text" label="textLog">
<show object="false" label="false" ev="8"/>
<condition showObject="showLog"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<bgColor r="255" g="255" b="0" alpha="255"/>
<layer val="6"/>
<labelMode val="0"/>
<tooltipMode val="2"/>
<isLaTeX val="true"/>
<font serif="false" sizeM="0.6" size="-8" style="1"/>
<absoluteScreenLocation x="6" y="7"/>
<ggbscript val="showLog=false"/>
</element>
<expression label="textRemaining" exp=""Remaining
 " + (Length[checkers]) + """ />
<element type="text" label="textRemaining">
<show object="true" label="false" ev="8"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="2"/>
<labelMode val="0"/>
<tooltipMode val="2"/>
<selectionAllowed val="false"/>
<font serif="false" sizeM="2" size="20" style="1"/>
<startPoint x="-4" y="-4.5" z="1"/>
</element>
<command name="Circle">
<input a0="(0, 4)" a1="r"/>
<output a0="c38"/>
</command>
<element type="conic" label="c38">
<show object="true" label="false" ev="4"/>
<objColor r="255" g="255" b="255" alpha="0.05000000074505806"/>
<layer val="0"/>
<labelMode val="0"/>
<tooltipMode val="2"/>
<fixed val="true"/>
<ggbscript val="SetValue[F,(0,4)]"/>
<lineStyle thickness="1" type="0" typeHidden="1" opacity="0"/>
<eigenvectors x0="1" y0="0" z0="1.0" x1="0" y1="1" z1="1.0"/>
<matrix A0="1" A1="1" A2="15.75" A3="0" A4="0" A5="-4"/>
<eqnStyle style="specific"/>
</element>
<command name="Circle">
<input a0="(-4, 0)" a1="r"/>
<output a0="c39"/>
</command>
<element type="conic" label="c39">
<show object="true" label="false" ev="4"/>
<objColor r="255" g="255" b="255" alpha="0.05000000074505806"/>
<layer val="0"/>
<labelMode val="0"/>
<tooltipMode val="2"/>
<fixed val="true"/>
<ggbscript val="SetValue[F,(-4,0)]"/>
<lineStyle thickness="1" type="0" typeHidden="1" opacity="0"/>
<eigenvectors x0="1" y0="0" z0="1.0" x1="0" y1="1" z1="1.0"/>
<matrix A0="1" A1="1" A2="15.75" A3="0" A4="4" A5="0"/>
<eqnStyle style="specific"/>
</element>
<command name="Circle">
<input a0="(4, 0)" a1="r"/>
<output a0="c40"/>
</command>
<element type="conic" label="c40">
<show object="true" label="false" ev="4"/>
<objColor r="255" g="255" b="255" alpha="0.05000000074505806"/>
<layer val="0"/>
<labelMode val="0"/>
<tooltipMode val="2"/>
<fixed val="true"/>
<ggbscript val="SetValue[F,(4,0)]"/>
<lineStyle thickness="1" type="0" typeHidden="1" opacity="0"/>
<eigenvectors x0="1" y0="0" z0="1.0" x1="0" y1="1" z1="1.0"/>
<matrix A0="1" A1="1" A2="15.75" A3="0" A4="-4" A5="0"/>
<eqnStyle style="specific"/>
</element>
<command name="Circle">
<input a0="(0, -4)" a1="r"/>
<output a0="c41"/>
</command>
<element type="conic" label="c41">
<show object="true" label="false" ev="4"/>
<objColor r="255" g="255" b="255" alpha="0.05000000074505806"/>
<layer val="0"/>
<labelMode val="0"/>
<tooltipMode val="2"/>
<fixed val="true"/>
<ggbscript val="SetValue[F,(0,-4)]"/>
<lineStyle thickness="1" type="0" typeHidden="1" opacity="0"/>
<eigenvectors x0="1" y0="0" z0="1.0" x1="0" y1="1" z1="1.0"/>
<matrix A0="1" A1="1" A2="15.75" A3="0" A4="0" A5="4"/>
<eqnStyle style="specific"/>
</element>
<element type="point" label="P38">
<show object="true" label="true" ev="4"/>
<condition showObject="showCoordinate"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="8"/>
<labelMode val="2"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<coords x="0" y="4" z="1"/>
<pointSize val="1"/>
<pointStyle val="0"/>
</element>
<element type="point" label="P39">
<show object="true" label="true" ev="4"/>
<condition showObject="showCoordinate"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="8"/>
<labelMode val="2"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<coords x="-4" y="0" z="1"/>
<pointSize val="1"/>
<pointStyle val="0"/>
</element>
<element type="point" label="P40">
<show object="true" label="true" ev="4"/>
<condition showObject="showCoordinate"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="8"/>
<labelMode val="2"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<coords x="4" y="0" z="1"/>
<pointSize val="1"/>
<pointStyle val="0"/>
</element>
<element type="point" label="P41">
<show object="true" label="true" ev="4"/>
<condition showObject="showCoordinate"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="8"/>
<labelMode val="2"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<coords x="0" y="-4" z="1"/>
<pointSize val="1"/>
<pointStyle val="0"/>
</element>
<element type="image" label="picMarble">
<file name="bb316a2e56edec7bacf8871088d5b60a/transferImage.png"/>
<inBackground val="false"/>
<startPoint number="0" exp="A"/>
<startPoint number="1" exp="A + (0.75, 0)"/>
<show object="false" label="false"/>
<objColor r="0" g="0" b="0" alpha="1"/>
<layer val="8"/>
<labelMode val="0"/>
<animation step="1" speed="1" type="0" playing="false"/>
</element>
<command name="Sequence">
<input a0="Translate[picMarble, Vector[A, checkers(k) + (-0.375, -0.375)]]" a1="k" a2="1" a3="Length[checkers]"/>
<output a0="checkersM"/>
</command>
<element type="list" label="checkersM">
<show object="true" label="false" ev="4"/>
<objColor r="75" g="0" b="130" alpha="1"/>
<layer val="2"/>
<labelMode val="0"/>
<tooltipMode val="2"/>
<selectionAllowed val="false"/>
<lineStyle thickness="5" type="0" typeHidden="1"/>
<pointSize val="5"/>
<pointStyle val="0"/>
<angleStyle val="0"/>
</element>
<expression label="textRankCht" exp=""遊戲結束!
您走了 " + nGL + " 步,剩餘 " + numR + " 個棋子
評級: " + (If[numR > 7, rankCht(9), ""]) + "" + (If[numR ≟ 7, rankCht(8), ""]) + " " + (If[numR ≟ 6, rankCht(7), ""]) + "" + (If[numR ≟ 5, rankCht(6), ""]) + "" + (If[numR ≟ 4, rankCht(5), ""]) + "" + (If[numR ≟ 3, rankCht(4), ""]) + "" + (If[numR ≟ 2, rankCht(3), ""]) + "" + (If[numR ≟ 1 ∧ checkers ≠ {(0, 0)}, rankCht(2), ""]) + "" + (If[numR ≟ 1 ∧ checkers ≟ {(0, 0)}, rankCht(1), ""]) + """ />
<element type="text" label="textRankCht">
<show object="true" label="false" ev="8"/>
<condition showObject="showResult"/>
<objColor r="255" g="255" b="0" alpha="0"/>
<layer val="8"/>
<labelMode val="0"/>
<tooltipMode val="2"/>
<selectionAllowed val="false"/>
<font serif="false" sizeM="2" size="20" style="0"/>
<startPoint x="-4" y="3" z="1"/>
</element>
<expression label="textRankEng" exp=""Game Over!
You have spent " + nGL + " moves, 
there are " + numR + " remaining peg(s)
Rank: " + (If[numR > 7, rankEng(9), ""]) + "" + (If[numR ≟ 7, rankEng(8), ""]) + "" + (If[numR ≟ 6, rankEng(7), ""]) + "" + (If[numR ≟ 5, rankEng(6), ""]) + "" + (If[numR ≟ 4, rankEng(5), ""]) + "" + (If[numR ≟ 3, rankEng(4), ""]) + "" + (If[numR ≟ 2, rankEng(3), ""]) + "" + (If[numR ≟ (1 * checkers) ≠ {(0, 0)}, rankEng(2), ""]) + "" + (If[numR ≟ (1 * checkers) ≟ {(0, 0)}, rankEng(1), ""]) + """ />
<element type="text" label="textRankEng">
<show object="true" label="false" ev="40"/>
<condition showObject="showResult"/>
<objColor r="255" g="255" b="0" alpha="0"/>
<layer val="8"/>
<labelMode val="0"/>
<tooltipMode val="2"/>
<selectionAllowed val="false"/>
<font serif="false" sizeM="2" size="20" style="0"/>
<startPoint x="-4" y="0" z="1"/>
</element>
</construction>
</geogebra>