-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.blocks
1 lines (1 loc) · 14 KB
/
main.blocks
1
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="rrjmkC8VQelC;!Pq41_3">i</variable><variable id="*q@_Gx`elSX+,Xl!VaK$">bclicked</variable><variable id="A}!;KvngX(Zp4Q$+7K^%">atimes</variable></variables><block type="device_forever" id="nEN5K[5d*-I93dJF{T6;" x="20" y="20"><statement name="HANDLER"><block type="music_set_built_in_speaker_enable" id="L3#n^-?2HJxdB2:MdEr]"><value name="enabled"><shadow type="toggleOnOff" id="o^j@qVvM^qYQGTl)RMa]"><field name="on">true</field></shadow></value><next><block type="variables_set" id="k`cN0KA-3`#Y$#~4B_Ti"><field name="VAR" id="A}!;KvngX(Zp4Q$+7K^%">atimes</field><value name="VALUE"><shadow type="math_number" id="ZmjZa2c{+k9`)Kn5QkdJ"><field name="NUM">0</field></shadow></value><next><block type="variables_set" id="To~ZP)TnX)rQ=ZsO;[lS"><field name="VAR" id="*q@_Gx`elSX+,Xl!VaK$">bclicked</field><value name="VALUE"><shadow type="math_number" id="!Dw.LRzfh/}se]IIkg$l"><field name="NUM">0</field></shadow></value><next><block type="function_call" id="f/fGk0^$H~a(`aBCT5a4"><mutation name="showIcon" functionid="xdrUxAkBvi]zaIN3BLC#"></mutation><next><block type="device_print_message" id="f5(Q.yl^,*T1/:p?UgJJ"><value name="text"><shadow type="text" id="ruj+#Y3:h?:BU@@^i(a="><field name="TEXT">A to input B to fibo</field></shadow></value><next><block type="function_call" id="psx|eemHAw^|%iPHOR^Q"><mutation name="numElements" functionid="3n3$JY{zj?FBl*,?S8@{"></mutation><next><block type="device_pause" id="C=OL#_6PGv^=!_0WbgV5"><value name="pause"><shadow type="timePicker" id="DKgr#LsL^BT.]Xp#v||e"><field name="ms">500</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type="function_definition" id="{)f,#FZe;~~_$Vx,rfbG" x="415" y="20"><mutation name="showIcon" functionid="xdrUxAkBvi]zaIN3BLC#"></mutation><field name="function_name">showIcon</field><statement name="STACK"><block type="device_clear_display" id="fC{):KndL(m?8{`v[jPD"><next><block type="device_start_melody" id=",mLK]$JV8a929.FRY+I2"><field name="options">MelodyOptions.Once</field><value name="melody"><block type="device_builtin_melody" id="Z`gs_(9CW`9Q%EO-yms*"><field name="melody">Melodies.Entertainer</field></block></value><next><block type="controls_repeat_ext" id="@oC0dK*~;kL{ziIuDA@j"><value name="TIMES"><shadow type="math_whole_number" id="1-z]5haw,rVm7dlWn_b."><field name="NUM">4</field></shadow></value><statement name="DO"><block type="basic_show_icon" id="+4%Ki+c,w5I;B]#fJ?@}"><field name="i">IconNames.SmallDiamond</field><next><block type="device_pause" id="PrCozkoU~m6xEc!a1?$V"><value name="pause"><shadow type="timePicker" id=":dVWSSx.-X[^p3Xb`Qxg"><field name="ms">100</field></shadow></value><next><block type="basic_show_icon" id="G.Ra?l@1hk1eklqU+118"><field name="i">IconNames.Diamond</field><next><block type="device_pause" id=")1V35pub=fwy*nH5%|!M"><value name="pause"><shadow type="timePicker" id="F#}li(/~yf6@4!iz^{,u"><field name="ms">100</field></shadow></value></block></next></block></next></block></next></block></statement><next><block type="device_clear_display" id="RKI)zSOl6%EBu;/aU^Il"><next><block type="device_print_message" id="y|V:k(]u-p9)%6g+[BP-"><value name="text"><shadow type="text" id="`MD=FjY?ywSSU:y0j=w%"><field name="TEXT">Fibo</field></shadow></value><next><block type="device_clear_display" id="W]PO-8r3*xvVkqs]VXJ*"></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type="function_definition" id="FX9to6Z}U7Xxw(z7q.%h" x="929" y="20"><mutation name="fibo" functionid="%!X5t6|(D-A)m)~wdNaa"><arg name="n" id="3kgz80pssfa7qbdnp489v" type="number"></arg></mutation><field name="function_name">fibo</field><value name="3kgz80pssfa7qbdnp489v"><shadow type="argument_reporter_number" id="`0$36~$GkDRm?,Je(x?F"><field name="VALUE">n</field></shadow></value><statement name="STACK"><block type="controls_if" id="[X?v^!h%Zts1i$/ytXJx"><mutation elseif="1" else="1"></mutation><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="q^1Z446EIc1YAB8oRa:6"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="argument_reporter_number" id="`4xE}=sZC)*m9]HC{Xj:"><field name="VALUE">n</field></block></value><value name="B"><shadow type="math_number" id="xc9u#COPD%Xnt6%nKCFI"><field name="NUM">1</field></shadow></value></block></value><statement name="DO0"><block type="function_return" id="Z%g*a5aPhded8HnHmFc`"><mutation xmlns="http://www.w3.org/1999/xhtml" no_return_value="false"></mutation><value name="RETURN_VALUE"><shadow type="math_number" id="YeCx7Cpr14?q_4BE?^=;"><field name="NUM">1</field></shadow></value></block></statement><value name="IF1"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="lDD^_t=j-(Evs2f(6Bi;"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="argument_reporter_number" id="6rY]~pf2WreEv#-w)bU;"><field name="VALUE">n</field></block></value><value name="B"><shadow type="math_number" id="F,woedU3.5@4x|rCZYsP"><field name="NUM">2</field></shadow></value></block></value><statement name="DO1"><block type="function_return" id="-ax%wXRL]GJ??jk?MQ0V"><mutation xmlns="http://www.w3.org/1999/xhtml" no_return_value="false"></mutation><value name="RETURN_VALUE"><shadow type="math_number" id="wA4nTQN]H!Cs9%}U5@z("><field name="NUM">1</field></shadow></value></block></statement><statement name="ELSE"><block type="function_return" id="6PNitIJpG!n!9I5uRa2,"><mutation xmlns="http://www.w3.org/1999/xhtml" no_return_value="false"></mutation><value name="RETURN_VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="math_arithmetic" id=".=GdueXw}k~=TZ!kJBo1"><field name="OP">ADD</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="function_call_output" id="=T/_]6qfI@S+9H%QP0j!"><mutation name="fibo" functionid="%!X5t6|(D-A)m)~wdNaa"><arg name="n" id="3kgz80pssfa7qbdnp489v" type="number"></arg></mutation><value name="3kgz80pssfa7qbdnp489v"><shadow type="math_number"><field name="NUM">1</field></shadow><block type="math_arithmetic" id="/Vv83`sUrQeNu*5wa])s"><field name="OP">MINUS</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="argument_reporter_number" id="b{ao-w(:=-A_{B;T.ab!"><field name="VALUE">n</field></block></value><value name="B"><shadow type="math_number" id="0q]Vx%3prb3,%D]uPir@"><field name="NUM">1</field></shadow></value></block></value></block></value><value name="B"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="function_call_output" id="=(Mf4T{C6igy9dUqp9qZ"><mutation name="fibo" functionid="%!X5t6|(D-A)m)~wdNaa"><arg name="n" id="3kgz80pssfa7qbdnp489v" type="number"></arg></mutation><value name="3kgz80pssfa7qbdnp489v"><shadow type="math_number"><field name="NUM">1</field></shadow><block type="math_arithmetic" id="GS)~X2#~62}XZGs34#dq"><field name="OP">MINUS</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="argument_reporter_number" id="o~%}Thz}Jxwv[Lr_{j9Y"><field name="VALUE">n</field></block></value><value name="B"><shadow type="math_number" id="Df4VLn;_Bm9_e,0TPB2Q"><field name="NUM">2</field></shadow></value></block></value></block></value></block></value></block></statement></block></statement></block><block type="function_definition" id="/Hyv|nmGx^(2[ope8{wr" x="1702" y="20"><mutation name="interact" functionid="%29*9`OCjJwC+u.$v7Pj"><arg name="interval" id="on3jdz1zgxs50xk67nc7" type="number"></arg></mutation><field name="function_name">interact</field><value name="on3jdz1zgxs50xk67nc7"><shadow type="argument_reporter_number" id="vr_-+hF-#:MWn05E3wMd"><field name="VALUE">interval</field></shadow></value><statement name="STACK"><block type="device_clear_display" id="3GTgOuW/_Ejg^6Fn^Rvx"><next><block type="variables_set" id="kqeA}wo`I=u);qS*t|{Z"><field name="VAR" id="rrjmkC8VQelC;!Pq41_3">i</field><value name="VALUE"><shadow type="math_number" id="OTT^oIAEFB8_c_NFO+K{"><field name="NUM">1</field></shadow></value><next><block type="device_while" id="7T4Z9,-7xqi-2f%iv^AX"><value name="COND"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="E`xECBZeKHQYwn[M@M0p"><field name="OP">LT</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="$h:Hu}k1ywZJ#%hpT%U:"><field name="VAR" id="rrjmkC8VQelC;!Pq41_3">i</field></block></value><value name="B"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="math_arithmetic" id="F#J;?%^^0xXuP3qtz%:N"><field name="OP">ADD</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="argument_reporter_number" id="l2ehjsKSJ|WZ]7*@K3%g"><field name="VALUE">interval</field></block></value><value name="B"><shadow type="math_number" id="VdmxqNEf9*[rxZyrt3_y"><field name="NUM">1</field></shadow></value></block></value></block></value><statement name="DO"><block type="device_print_message" id="^LLLTqS}U#SRoa?$`JcZ"><value name="text"><shadow type="text"><field name="TEXT"></field></shadow><block type="text_join" id="(QT|.0nFI#gzKj2SGrvt"><mutation items="1"></mutation><value name="ADD0"><shadow type="text"><field name="TEXT"></field></shadow><block type="function_call_output" id="wVUf{qtJ@L/gb*LyHtY`"><mutation name="fibo" functionid="%!X5t6|(D-A)m)~wdNaa"><arg name="n" id="3kgz80pssfa7qbdnp489v" type="number"></arg></mutation><value name="3kgz80pssfa7qbdnp489v"><shadow type="math_number"><field name="NUM">1</field></shadow><block type="variables_get" id="I}OvBsxq?{^Pb(BIog-o"><field name="VAR" id="rrjmkC8VQelC;!Pq41_3">i</field></block></value></block></value></block></value><next><block type="device_pause" id="#vB%;;V*m%Z~sl_S2[=j"><value name="pause"><shadow type="timePicker" id="x^IBl81Iz7BRpI57t?WW"><field name="ms">100</field></shadow></value><next><block type="device_clear_display" id="D.tq.FF;sPm.XJJ|#Ei9"><next><block type="variables_change" id="8Hw]2+JDaHJHj$27{.,w"><field name="VAR" id="rrjmkC8VQelC;!Pq41_3">i</field><value name="VALUE"><shadow type="math_number" id="fHb1wp*PW37InA^Q5WNY"><field name="NUM">1</field></shadow></value></block></next></block></next></block></next></block></statement></block></next></block></next></block></statement></block><block type="function_definition" id="zeaPOKrS~z{f|N[{nGbA" x="20" y="707"><mutation name="numElements" functionid="3n3$JY{zj?FBl*,?S8@{"></mutation><field name="function_name">numElements</field><statement name="STACK"><block type="device_while" id="mqu%Lc9uf4Ni}:!#V|XS"><value name="COND"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id=":8AJ;aH@ga(XqiTl.mdf"><field name="OP">LT</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="V11y]ZbVf:y0Mzvpg1K."><field name="VAR" id="*q@_Gx`elSX+,Xl!VaK$">bclicked</field></block></value><value name="B"><shadow type="math_number" id="4vQABw`FT_6Lg4X=b2c+"><field name="NUM">1</field></shadow></value></block></value><statement name="DO"><block type="controls_if" id="_uVLi*eI?v_3r[eNnqli"><mutation elseif="1"></mutation><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="device_get_button2" id="i/`bF_v~~NU:Ck^kYvIX"><field name="NAME">Button.A</field></block></value><statement name="DO0"><block type="device_print_message" id="|sGkkh%T0g!v*u[gfZT="><value name="text"><shadow type="text" id="Pri(56_D!(^AgiZ(Wz+n"><field name="TEXT">A</field></shadow></value><next><block type="device_clear_display" id=",_aR|?QJ2t)Qkq]`cQC]"><next><block type="variables_change" id="Rz;CQ(!~?fb,jqC_l%tz"><field name="VAR" id="A}!;KvngX(Zp4Q$+7K^%">atimes</field><value name="VALUE"><shadow type="math_number" id="AiDJRw6?g=plq2e9TcsN"><field name="NUM">1</field></shadow></value><next><block type="device_print_message" id="UT+LC5xoePg2Ta@XzwE,"><value name="text"><shadow type="text"><field name="TEXT"></field></shadow><block type="text_join" id="N.-7W{Wx9f?!BcHgbD.v"><mutation items="1"></mutation><value name="ADD0"><shadow type="text"><field name="TEXT"></field></shadow><block type="variables_get" id="HCCjmb]4/Ta@p`/Z2ER~"><field name="VAR" id="A}!;KvngX(Zp4Q$+7K^%">atimes</field></block></value></block></value></block></next></block></next></block></next></block></statement><value name="IF1"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="device_get_button2" id="/P}odq7DfTt+RCm[yG5G"><field name="NAME">Button.B</field></block></value><statement name="DO1"><block type="device_print_message" id="/TYT]a4mr*b$u,BYY.2I"><value name="text"><shadow type="text" id="!fCe|oq83c;H].0_B`2Y"><field name="TEXT">B</field></shadow></value><next><block type="variables_change" id="z/j+DOZG*6Oads1eoS?*"><field name="VAR" id="*q@_Gx`elSX+,Xl!VaK$">bclicked</field><value name="VALUE"><shadow type="math_number" id=".-*8X+}+VzwEW[#inI~X"><field name="NUM">1</field></shadow></value></block></next></block></statement><next><block type="device_pause" id="MrqsdH)ezLBe:Cbwy+Mh"><value name="pause"><shadow type="timePicker" id="J=;yWS9qW@8!U!zVIrV_"><field name="ms">50</field></shadow></value></block></next></block></statement><next><block type="device_clear_display" id="E*+^~%aDHu-7_Nbpg5o9"><next><block type="device_print_message" id="MULs{b5(eMl9A_zX)kW9"><value name="text"><shadow type="text" id="(F8Ej4H=H;MF3^z}6,50"><field name="TEXT">Fibo</field></shadow></value><next><block type="function_call" id="sRYif)*m1Oc_k~!@B.Hx"><mutation name="interact" functionid="%29*9`OCjJwC+u.$v7Pj"><arg name="interval" id="on3jdz1zgxs50xk67nc7" type="number"></arg></mutation><value name="on3jdz1zgxs50xk67nc7"><shadow type="math_number"><field name="NUM">1</field></shadow><block type="variables_get" id="]hrqn9I!MM=u^+L)K_F#"><field name="VAR" id="A}!;KvngX(Zp4Q$+7K^%">atimes</field></block></value></block></next></block></next></block></next></block></statement></block></xml>