-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.blocks
1 lines (1 loc) · 6.19 KB
/
main.blocks
1
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="G1S2{e9Wz8CBP4mP[FcB">x</variable><variable id="+6~8fq92}qB$e@j-+sem">len</variable></variables><block type="pxt-on-start" id="y;7D]O#:hUYV`XT2XQkc" x="-9" y="-194"><statement name="HANDLER"><block type="variables_set" id="^j^;L8}c=EV!pNrGY#j+"><field name="VAR" id="G1S2{e9Wz8CBP4mP[FcB">x</field><value name="VALUE"><shadow type="math_number" id="~iLc6foBZXgsjfZNe]ql"><field name="NUM">2</field></shadow></value><next><block type="variables_set" id="3iM8fgj`i?o@TmHaV?Yv"><field name="VAR" id="+6~8fq92}qB$e@j-+sem">len</field><value name="VALUE"><shadow type="math_number" id="=#f8=XHNYAO#!=_FV)#`"><field name="NUM">0</field></shadow></value></block></next></block></statement></block><block type="device_button_event" id="Q4jq6]wZw1HdJnuXh{%+" x="0" y="0"><field name="NAME">Button.A</field><statement name="HANDLER"><block type="device_while" id="@V8GW[q*}7A.6lq)`uHN"><value name="COND"><shadow type="logic_boolean"><field name="BOOL">FALSE</field></shadow><block type="logic_compare" id="_z#Wt-Q4aE:k[#Xxd$kN"><field name="OP">LT</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="Te_%8fL/kgL72RKhe(b9"><field name="VAR" id="G1S2{e9Wz8CBP4mP[FcB">x</field></block></value><value name="B"><shadow type="math_number" id="aiiM=+qMMw%|tjN5r,SV"><field name="NUM">12</field></shadow></value></block></value><statement name="DO"><block type="controls_if" id=":ub+jIcB;KNy+:EroCbz"><mutation else="1"></mutation><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="X}SCVHjq0SRp;JAE4(aR"><field name="OP">LT</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="f3fU^{x*s%S;l-T+xX1q"><field name="VAR" id="G1S2{e9Wz8CBP4mP[FcB">x</field></block></value><value name="B"><shadow type="math_number" id="l!w+7uCSgOyVM$WLNhwe"><field name="NUM">10</field></shadow></value></block></value><statement name="DO0"><block type="variables_set" id="p#3IBQ9Pp*T?VS@RK=md"><field name="VAR" id="+6~8fq92}qB$e@j-+sem">len</field><value name="VALUE"><shadow type="math_number" id="9_-[zP?(f`%_3|e}E-Ao"><field name="NUM">1</field></shadow></value></block></statement><statement name="ELSE"><block type="variables_set" id="#:d,8uDMut-ci+bMfc`V"><field name="VAR" id="+6~8fq92}qB$e@j-+sem">len</field><value name="VALUE"><shadow type="math_number" id="qfvV|rKQ2|LJtMbq~-ZH"><field name="NUM">2</field></shadow></value></block></statement><next><block type="device_show_number" id="~Hia]-[loiv3ebo`mgmv"><value name="number"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="gt.CstYEWH6jRi{^!AWC"><field name="VAR" id="G1S2{e9Wz8CBP4mP[FcB">x</field></block></value><next><block type="device_pause" id=",+#^ZtFO9pz@m~oiIlx2"><value name="pause"><shadow type="timePicker" id="kmqP5ov#=*Z-!ax4:hoa"><field name="ms">100</field></shadow></value><next><block type="device_show_number" id="F=e=[DA^]ctbrr!oMGog"><value name="number"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="jKt`gQ8!}epPJ.)Q7qha"><field name="VAR" id="+6~8fq92}qB$e@j-+sem">len</field></block></value><next><block type="device_pause" id=")GG]ZO+aimQ+YxK?={*O"><value name="pause"><shadow type="timePicker" id="6Ew%-u{.!sau%Zp+]fw@"><field name="ms">100</field></shadow></value><next><block type="device_clear_display" id="!eVaqlLDu@,WauIlgv+M"><next><block type="variables_change" id="Xf3+/o!H8*{q%_5bzy[2"><field name="VAR" id="G1S2{e9Wz8CBP4mP[FcB">x</field><value name="VALUE"><shadow type="math_number" id="MQLrkJf*qa$c0/]%vO/a"><field name="NUM">1</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block></statement></block><block type="device_button_event" id="5khN#YHC^Zmji(V9vqh5" x="540" y="173"><field name="NAME">Button.B</field><statement name="HANDLER"><block type="device_while" id="bhroe+)y+/h3gj:VB2L_"><value name="COND"><shadow type="logic_boolean"><field name="BOOL">FALSE</field></shadow><block type="logic_compare" id="nSU4LBGwoy#LwTA9Jx14"><field name="OP">LT</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="@J9udX1^g615MlYjtuHa"><field name="VAR" id="G1S2{e9Wz8CBP4mP[FcB">x</field></block></value><value name="B"><shadow type="math_number" id="*W1ahzpKYZf(:EpPk){F"><field name="NUM">9</field></shadow></value></block></value><statement name="DO"><block type="variables_change" id="@`*IA$6ds^E_]dY@qY%b"><field name="VAR" id="G1S2{e9Wz8CBP4mP[FcB">x</field><value name="VALUE"><shadow type="math_number" id="|,s@;znv]#itJH0}qLYl"><field name="NUM">1</field></shadow></value><next><block type="controls_if" id="(QDiSn=79Yr1eLT}E#(|"><mutation else="1"></mutation><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="92q?dApvXKB:jjCZV5`y"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="math_modulo" id="^N@f?3HXT{$lxx;zc8]z"><value name="DIVIDEND"><shadow type="math_number" disabled="true"><field name="NUM">0</field></shadow><block type="variables_get" id="I!YRorPEpJv_hwsK.*yd"><field name="VAR" id="G1S2{e9Wz8CBP4mP[FcB">x</field></block></value><value name="DIVISOR"><shadow type="math_number" id="OBqCI}I1l9jllorCRqY/"><field name="NUM">2</field></shadow></value></block></value><value name="B"><shadow type="math_number" id="fSIECl-f7CmvG@:Zf@H/"><field name="NUM">0</field></shadow></value></block></value><statement name="DO0"><block type="device_print_message" id="*GgvRdayQG7EG!V(EnI."><value name="text"><shadow type="text" id="D.~6l+2Q}I+Jwz%mh+D4"><field name="TEXT">G</field></shadow></value></block></statement><statement name="ELSE"><block type="device_show_number" id="w%{LW~Utd5RF98{w:Yb;"><value name="number"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="|~jf57L/rj]xQ7=zKM-O"><field name="VAR" id="G1S2{e9Wz8CBP4mP[FcB">x</field></block></value></block></statement></block></next></block></statement></block></statement></block></xml>