-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.blocks
1 lines (1 loc) · 19.1 KB
/
main.blocks
1
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id=":jSqTM2w:O`-tmGKP|KM">band</variable><variable id="n3[3}dLd`~5y}jVRnVt^">primeNumbers</variable><variable id="c)ytV?n;/kOV~Pa0$kz.">mode</variable><variable id="1L,ZXIt:ornoYIwymm9k">noise</variable><variable id="1`^3F-9pUMX7RSv5JU=x">group</variable></variables><block type="pxt-on-start" id="@EpEquuSlCM`O=7b4q}/" x="0" y="0"><statement name="HANDLER"><block type="variables_set" id="Dy$J`H,,pM@k+I3NXSVV"><field name="VAR" id="1`^3F-9pUMX7RSv5JU=x">group</field><value name="VALUE"><shadow type="math_number" id="X35%f|guddF/GT0CD_R="><field name="NUM">0</field></shadow></value><next><block type="variables_set" id=")Q=w^Mn|1dpwG%|kNEY+"><field name="VAR" id="n3[3}dLd`~5y}jVRnVt^">primeNumbers</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="lists_create_with" id="9jk:u?`es1o=kF(_pxTq" inline="false"><mutation items="23"/><value name="ADD0"><shadow type="math_number" id="gydC`u5+F?,W-F#z,{X3"><field name="NUM">2</field></shadow></value><value name="ADD1"><shadow type="math_number" id="wZ?[7B[=LGUrh,Gc5Fbb"><field name="NUM">3</field></shadow></value><value name="ADD2"><shadow type="math_number" id="l+R=%kzCZB`I8o[J?}~d"><field name="NUM">5</field></shadow></value><value name="ADD3"><shadow type="math_number" id="i{$]BgNY_x~6}d]r11Av"><field name="NUM">7</field></shadow></value><value name="ADD4"><shadow type="math_number" id=";@gZaED9XXY(lJv!|IwQ"><field name="NUM">11</field></shadow></value><value name="ADD5"><shadow type="math_number" id="M$.ALX*J7FF^W^(Q?AR{"><field name="NUM">13</field></shadow></value><value name="ADD6"><shadow type="math_number" id="iuyIS(y|2$)~M=l7PXHj"><field name="NUM">17</field></shadow></value><value name="ADD7"><shadow type="math_number" id="s/I%#)KQ$l6O~{++/U(u"><field name="NUM">19</field></shadow></value><value name="ADD8"><shadow type="math_number" id="0vV.8e#1+RM*qJoh,hB*"><field name="NUM">23</field></shadow></value><value name="ADD9"><shadow type="math_number" id="[+QI#VfcJ){cV]xtweXZ"><field name="NUM">29</field></shadow></value><value name="ADD10"><shadow type="math_number" id="T?W!O)c#x^(W3(6Qf7S_"><field name="NUM">31</field></shadow></value><value name="ADD11"><shadow type="math_number" id="tZ`eFur2o]uLKv9_+0Zw"><field name="NUM">37</field></shadow></value><value name="ADD12"><shadow type="math_number" id="jG!akfu|BaWRO)Tl8jRm"><field name="NUM">41</field></shadow></value><value name="ADD13"><shadow type="math_number" id="u@$k7(m8Jww)Zt?xP~y*"><field name="NUM">43</field></shadow></value><value name="ADD14"><shadow type="math_number" id="k`%k}F+~^zv3^OkYcFp["><field name="NUM">47</field></shadow></value><value name="ADD15"><shadow type="math_number" id="e}Pd0Of6Kc9$%{pMs{$p"><field name="NUM">53</field></shadow></value><value name="ADD16"><shadow type="math_number" id="t)s(]+qVvqJT.wbO)JFV"><field name="NUM">59</field></shadow></value><value name="ADD17"><shadow type="math_number" id="BiCO_x/PWMs/%A(!S7Qi"><field name="NUM">61</field></shadow></value><value name="ADD18"><shadow type="math_number" id="DAN34H()EO?56imX^(m5"><field name="NUM">67</field></shadow></value><value name="ADD19"><shadow type="math_number" id="gVB4.q;eoxU%t(_0p,{P"><field name="NUM">71</field></shadow></value><value name="ADD20"><shadow type="math_number" id=",LDT8`GGS$R03uzDg|5+"><field name="NUM">73</field></shadow></value><value name="ADD21"><shadow type="math_number" id="VVRO(-=79x:1+AW7e]o6"><field name="NUM">79</field></shadow></value><value name="ADD22"><shadow type="math_number" id="tY}[L*Aq#Tq,I]VEi.51"><field name="NUM">83</field></shadow></value></block></value></block></next></block></statement></block><block type="function_definition" id="#6#$(EGvT|V#g|k!Dd)V" x="452" y="0"><mutation name="setupForThirdTreasure" functionid="f1s3~AIH#Ipjb-VarUe;"><arg name="intervalInSeconds" id="ecn72zj4b287h6i7qbjih" type="number"/></mutation><field name="function_name">setupForThirdTreasure</field><comment>THIRD TREASURE - needs written hint: Ich bin prim prim prima und deshalb weiß meine Gruppe die Antwort auf die Frage nach dem Leben, dem Universum und dem ganzen Rest</comment><statement name="STACK"><block type="radio_set_group" id="m]jjx6EE~sH`*?wN7mT("><value name="ID"><shadow type="math_number_minmax" id="R85s96(jwaB6;D{!m9}K"><mutation min="0" max="255" label="Number" precision="0"/><field name="SLIDER">42</field></shadow></value><next><block type="radio_set_transmit_power" id="!0$,}Gd6A;gU%2r]vVe#"><value name="power"><shadow type="math_number_minmax" id="E8+Oo;41uOmV~T3N27X3"><mutation min="0" max="7" label="Number" precision="0"/><field name="SLIDER">7</field></shadow></value><next><block type="radio_set_transmit_serial_number" id="syBn`G2]+.sIs2;yZIjn"><value name="transmit"><shadow type="logic_boolean" id="@,+3Tck)}G.XBCPRIFp."><field name="BOOL">TRUE</field></shadow></value><next><block type="variables_set" id="DXXfF#-_jiR[_lH]Bxmr"><field name="VAR" id=":jSqTM2w:O`-tmGKP|KM">band</field><comment>band range: 0 - 83 prime numbers in the band 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83</comment><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="array_pop" id="*%MIGdC0iXt!:|8pyR{n"><value name="list"><block type="variables_get" id="kk|`?C^6$hhk(Vb-/q@3"><field name="VAR" id="n3[3}dLd`~5y}jVRnVt^">primeNumbers</field></block></value></block></value><next><block type="array_unshift_statement" id="hdB]fRq!S0$He/|@k^n?"><value name="list"><block type="variables_get" id="KhJOjn}_,TB8:ld~40}u"><field name="VAR" id="n3[3}dLd`~5y}jVRnVt^">primeNumbers</field></block></value><value name="value"><block type="variables_get" id="8j:|0BoeK#TA_zT#6#v}"><field name="VAR" id=":jSqTM2w:O`-tmGKP|KM">band</field></block></value><next><block type="device_show_number" id="+J/.D$nnm+Uc]f*fHR!8"><value name="number"><block type="variables_get" id="+_bAwUjX7TWclNZZOiR+"><field name="VAR" id=":jSqTM2w:O`-tmGKP|KM">band</field></block></value><next><block type="radio_set_frequency_band" id="=(_JS3%-,f{ht!-W8V)-"><value name="band"><shadow type="math_number_minmax"><mutation min="0" max="83"/><field name="SLIDER">0</field></shadow><block type="variables_get" id="B]SUE=3avG?^0c$m]Ppp"><field name="VAR" id=":jSqTM2w:O`-tmGKP|KM">band</field></block></value><next><block type="device_pause" id="jhC4sl`sNU`M9cMIy[Dg"><value name="pause"><shadow type="timePicker"/><block type="math_arithmetic" id="FnZkh8RRDNZTXKBZ|lqX"><field name="OP">MULTIPLY</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="argument_reporter_number" id="R;jqUUj]P`)XWt3t(m?="><field name="VALUE">intervalInSeconds</field></block></value><value name="B"><shadow type="math_number" id="M.E/TmjjV3nJG9?;^wSV"><field name="NUM">1000</field></shadow></value></block></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type="function_definition" id="=5lvIzHmWXLMHBURL5m," x="1332" y="0"><mutation name="selectMode" functionid=")0A76caPEx[*@O-Tu8i-"/><field name="function_name">selectMode</field><statement name="STACK"><block type="device_show_number" id="C!d1sBHv4[S^*da`oI;6"><value name="number"><block type="variables_get" id="8zkX,]iJ%6UcK;+H_iI@"><field name="VAR" id="c)ytV?n;/kOV~Pa0$kz.">mode</field></block></value><next><block type="device_pause" id="|DrJuw8QJhuRzPc*XH^6"><value name="pause"><shadow type="timePicker" id="~sm/K!Q0}i]#La0)Sh:3"><field name="ms">200</field></shadow></value><next><block type="device_clear_display" id="9vx|(l129gXSO;p4w!#b"><next><block type="controls_if" id="V}wBo/PAU]A5j@]FenVG"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="xYzX|2[G!45nE60(nG*i"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="t_n{:}8t}^Mx$UY3Gi+/"><field name="VAR" id="c)ytV?n;/kOV~Pa0$kz.">mode</field></block></value><value name="B"><shadow type="math_number" id="TEMY|Lb|O9mUNQzzTqF("><field name="NUM">1</field></shadow></value></block></value><statement name="DO0"><block type="function_call" id="s;Z82NFw(Y^rf}g#_bq{"><mutation name="setupForFirstTreasure" functionid="HKcT.65Nuge?oKS*tMen"/></block></statement><next><block type="controls_if" id="W$KSv(R+qXn#D;H]4qUF"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="V/GGj?#H/P7-:15)8t04"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id=".HIuR{_3WrTY3L_saYaj"><field name="VAR" id="c)ytV?n;/kOV~Pa0$kz.">mode</field></block></value><value name="B"><shadow type="math_number" id="}j?j7Osjgn[5u,P:h0@P"><field name="NUM">3</field></shadow></value></block></value><statement name="DO0"><block type="function_call" id="gATr?]LSH6oMUXzo*Bph"><mutation name="setupForThirdTreasure" functionid="f1s3~AIH#Ipjb-VarUe;"><arg name="intervalInSeconds" id="ecn72zj4b287h6i7qbjih" type="number"/></mutation><value name="ecn72zj4b287h6i7qbjih"><shadow type="math_number" id="84|K]O}WI#.]}NvkrT*+"><field name="NUM">1</field></shadow></value></block></statement></block></next></block></next></block></next></block></next></block></statement></block><block type="device_forever" id="oWog-8O!f5cEl-{uXpJ:" x="1822" y="0"><statement name="HANDLER"><block type="controls_if" id="+1vh#43nV=x_F8M5cQ^;"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="c6C+D4X*u{k[Xs*ASo}p"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="rlT:p%C%cx@K=r,NtnR!"><field name="VAR" id="c)ytV?n;/kOV~Pa0$kz.">mode</field></block></value><value name="B"><shadow type="math_number" id="R-AyJAq/4usn.4rxWGqC"><field name="NUM">2</field></shadow></value></block></value><statement name="DO0"><block type="function_call" id="05G4J[(-`#c62.C6fb,Y"><mutation name="emitForSecondTreasure" functionid="_citQETZ{1oFInhdjbu,"><arg name="intervalInSeconds" id="7vav23rq47rdm0dg52074" type="number"/></mutation><value name="7vav23rq47rdm0dg52074"><shadow type="math_number" id="=]oE%uUnO`fS2`B}=(u^"><field name="NUM">0.1</field></shadow></value></block></statement></block></statement></block><block type="radio_on_string_drag" id="Tn0E#]@T$6V,A0^jm3RZ" x="2321" y="0"><value name="HANDLER_DRAG_PARAM_receivedString"><shadow type="argument_reporter_string" id="Dpc5yopowNe6?}q$J!2|"><field name="VALUE">receivedString</field></shadow></value><statement name="HANDLER"><block type="typescript_statement" id="obkOU.fmj}u?On!:RvA(" editable="false"><mutation xmlns="http://www.w3.org/1999/xhtml" line0="music.speakerPlayTone(262, music.beat(BeatFraction.Whole))" numlines="1"></mutation><next><block type="device_play_note" id="R37t8Af2/xdv#8mD/n^y"><value name="note"><shadow type="device_note" id="]Ql~}-z3F`cGTt+v)l}5"><field name="name">262</field></shadow></value><value name="duration"><shadow type="device_beat" id="9ipsl[W(31aix[Y,u4AF"><field name="fraction">BeatFraction.Whole</field></shadow></value><next><block type="device_print_message" id="/TY!Etr+GR(X8,d8Sp[~"><value name="text"><block type="argument_reporter_string" id="wBoey.V9XQgJ5.@hljRi"><field name="VALUE">receivedString</field></block></value></block></next></block></next></block></statement></block><block type="function_definition" id="?s[q}8d+GYtwl[u~/2Av" x="0" y="1181"><mutation name="setupForFirstTreasure" functionid="HKcT.65Nuge?oKS*tMen"/><field name="function_name">setupForFirstTreasure</field><comment>FIRST TREASURE</comment><statement name="STACK"><block type="radio_set_group" id="2)KmMUzI4-D9|LfWHv^q"><value name="ID"><shadow type="math_number_minmax" id="zc3@NCEl@xJ!_=@}67B,"><mutation min="0" max="255" label="Number" precision="0"/><field name="SLIDER">1</field></shadow></value><next><block type="radio_set_transmit_power" id="}apgU9a?IIebbi?_Pq]8"><value name="power"><shadow type="math_number_minmax" id="_uXiB%!SVyFY+dcFm_rr"><mutation min="0" max="7" label="Number" precision="0"/><field name="SLIDER">7</field></shadow></value><next><block type="radio_set_transmit_serial_number" id="4aQ#nck,7|f.?dJg{x,$"><value name="transmit"><shadow type="logic_boolean" id="G8}^j.IPI5*FlK{Z%?6o"><field name="BOOL">TRUE</field></shadow></value><next><block type="radio_set_frequency_band" id="4X5GX}!Jt_cQJIyZ?*3C"><value name="band"><shadow type="math_number_minmax" id="o80-D/K1!1.lMA/37q$1"><mutation min="0" max="83" label="Number" precision="0"/><field name="SLIDER">0</field></shadow></value></block></next></block></next></block></next></block></statement></block><block type="function_definition" id="F[O*_Rop`,e`QQf6G-^}" x="592" y="1181"><mutation name="emitForSecondTreasure" functionid="_citQETZ{1oFInhdjbu,"><arg name="intervalInSeconds" id="7vav23rq47rdm0dg52074" type="number"/></mutation><field name="function_name">emitForSecondTreasure</field><comment>SECOND TREASURE</comment><statement name="STACK"><block type="radio_set_group" id="X(}1z:_To@RiIarNVXyL"><value name="ID"><shadow type="math_number_minmax" id="]r)Lm7UGU0s2+=ZfIlox"><mutation min="0" max="255" label="Number" precision="0"/><field name="SLIDER">6</field></shadow></value><next><block type="radio_set_transmit_power" id="akFM2J}}M0z-:B:]4)2("><value name="power"><shadow type="math_number_minmax" id="rY^{Y)#fXf#UxK1c{`|:"><mutation min="0" max="7" label="Number" precision="0"/><field name="SLIDER">7</field></shadow></value><next><block type="radio_set_transmit_serial_number" id="uP*Y|952CEA*lY$RgiqZ"><value name="transmit"><shadow type="logic_boolean" id="142?3(Rjn2^UOfWF^6o,"><field name="BOOL">TRUE</field></shadow></value><next><block type="radio_set_frequency_band" id="L#b~fz%xRm8}(FsC_nso"><value name="band"><shadow type="math_number_minmax" id="PxFK1`cZ3T4AjdH!!BFo"><mutation min="0" max="83" label="Number" precision="0"/><field name="SLIDER">0</field></shadow></value><next><block type="variables_set" id=",[4U:475+ApW3n;`d]5["><field name="VAR" id="1L,ZXIt:ornoYIwymm9k">noise</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="math_modulo" id="791[l`3C|w`WOETet/(="><value name="DIVIDEND"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="math_arithmetic" id="QgS1qJo$5LQ,mVRVF60E"><field name="OP">ADD</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="gyamnpI::K$}uExE98[s"><field name="VAR" id="1L,ZXIt:ornoYIwymm9k">noise</field></block></value><value name="B"><shadow type="math_number" id="/3,=:]eZD|SCp0IAa`k)"><field name="NUM">10</field></shadow></value></block></value><value name="DIVISOR"><shadow type="math_number" id="jbreM4Qr%zU8=kkRJd_0"><field name="NUM">1000</field></shadow></value></block></value><next><block type="radio_datagram_send" id="7Rj)E`(^nU+VQnYzzbYs"><value name="value"><block type="variables_get" id="+WwpEo?1(/3jvJR3|i4:"><field name="VAR" id="1L,ZXIt:ornoYIwymm9k">noise</field></block></value><next><block type="device_pause" id="suJ:;q;#9}7DpDI14Q[a"><comment>basic.showNumber(noise) //addes to the pause</comment><value name="pause"><shadow type="timePicker"/><block type="math_arithmetic" id="M04AI^Fr6E8DCd_AtC~g"><field name="OP">MULTIPLY</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="argument_reporter_number" id="oRs$+3jzqqUpg|)~hi(["><field name="VALUE">intervalInSeconds</field></block></value><value name="B"><shadow type="math_number" id="KE17J+w.c{_+}ltMC6Ap"><field name="NUM">1000</field></shadow></value></block></value></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type="device_button_event" id="AQH%M9}|rfCv*bqzT4g@" x="1269" y="1181"><field name="NAME">Button.A</field><statement name="HANDLER"><block type="variables_set" id="DNm$Q#x?A/Y!D;fgnSFL"><field name="VAR" id="c)ytV?n;/kOV~Pa0$kz.">mode</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="math_arithmetic" id="O.;-5pLxLZpel]g.HSl,"><field name="OP">MINUS</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="*iCeXWPYK^dVBXrM6N33"><field name="VAR" id="c)ytV?n;/kOV~Pa0$kz.">mode</field></block></value><value name="B"><shadow type="math_number" id=":f]bJ.Lp2)uHL`01O!]D"><field name="NUM">1</field></shadow></value></block></value><next><block type="controls_if" id="S@M7M@BG{%vd1cRj^z*}"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="wCOp)So8Hr]_T{I:bt5."><field name="OP">LT</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="PI2z~{yiSzUK9~^={rTc"><field name="VAR" id="c)ytV?n;/kOV~Pa0$kz.">mode</field></block></value><value name="B"><shadow type="math_number" id="FqK3qFuzVR6NqP%3faUX"><field name="NUM">1</field></shadow></value></block></value><statement name="DO0"><block type="variables_set" id="dp54~3VE}^MS@CfBN^Bz"><field name="VAR" id="c)ytV?n;/kOV~Pa0$kz.">mode</field><value name="VALUE"><shadow type="math_number" id="-Ufzu,9wY^=^z!5=4m.d"><field name="NUM">3</field></shadow></value></block></statement><next><block type="function_call" id="e25|yI(WD~[eHAC]T`i7"><mutation name="selectMode" functionid=")0A76caPEx[*@O-Tu8i-"/></block></next></block></next></block></statement></block><block type="device_button_event" id="sPeoc`s^z]L-ZBXab;Ua" x="1751" y="1181"><field name="NAME">Button.B</field><statement name="HANDLER"><block type="variables_set" id="6C-Go(?W-|TA#7MWj=1q"><field name="VAR" id="c)ytV?n;/kOV~Pa0$kz.">mode</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="math_arithmetic" id="Yk(YFEtjY$~jjGAPqd}["><field name="OP">ADD</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="8#VHNmj_MtDgmR0m3Zat"><field name="VAR" id="c)ytV?n;/kOV~Pa0$kz.">mode</field></block></value><value name="B"><shadow type="math_number" id="xNlCsbX}+*efSFlZf}?F"><field name="NUM">1</field></shadow></value></block></value><next><block type="controls_if" id=")T1+cJ~)w08jd{A2OrM6"><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="d;{BN[IY1/NE~TB6Y4lS"><field name="OP">GT</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="C;e~P97FK-j;Mo]Y)dO;"><field name="VAR" id="c)ytV?n;/kOV~Pa0$kz.">mode</field></block></value><value name="B"><shadow type="math_number" id="rF#}1WzjZ`/:H[5o0p`D"><field name="NUM">3</field></shadow></value></block></value><statement name="DO0"><block type="variables_set" id="$IniSP^+Epjy-6W%hH+)"><field name="VAR" id="c)ytV?n;/kOV~Pa0$kz.">mode</field><value name="VALUE"><shadow type="math_number" id="X7$F[1/(TA^)djHF;75j"><field name="NUM">1</field></shadow></value></block></statement><next><block type="function_call" id="ax0z,a0cXR?X?887nIPl"><mutation name="selectMode" functionid=")0A76caPEx[*@O-Tu8i-"/></block></next></block></next></block></statement></block></xml>