-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.blocks
1 lines (1 loc) · 6.51 KB
/
main.blocks
1
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="6;:$q!mC`a$[adUp9mEk">First_persons_vote</variable><variable id="q}R%Ql/;Ty|1x-CA2gbE">second_persons_vote</variable><variable id="r?2JO/MdI@R(#h2MUkA[">People_has_the_most_vote</variable></variables><block type="pxt-on-start" id="N(-birC|83V[gD$;[LVw" x="20" y="20"><statement name="HANDLER"><block type="typescript_statement" id="Q$b3G1dKwrHgN1lp}6Z{" editable="false"><mutation xmlns="http://www.w3.org/1999/xhtml" line0="let First_persons_vote = 0" numlines="1" declaredvars="First_persons_vote"></mutation><next><block type="typescript_statement" id="zkGA?*)}X+f.k$4``Zbf" editable="false"><mutation xmlns="http://www.w3.org/1999/xhtml" line0="let People_has_the_most_vote = """ numlines="1" declaredvars="People_has_the_most_vote"></mutation><next><block type="typescript_statement" id="Dq`bTY36eeT{qS^q[;Em" editable="false"><mutation xmlns="http://www.w3.org/1999/xhtml" line0="let second_persons_vote = 0" numlines="1" declaredvars="second_persons_vote"></mutation><next><block type="typescript_statement" id="H|IJnBn)2[a^dBPJ**n2" editable="false"><mutation xmlns="http://www.w3.org/1999/xhtml" line0="console.log("Created by Cheng, Ray and Lucas Chen")" numlines="1"></mutation></block></next></block></next></block></next></block></statement></block><block type="device_button_event" id="=!=%v1DGYEI8WiN[XYic" x="546" y="20"><field name="NAME">Button.A</field><statement name="HANDLER"><block type="variables_change" id="fkmJJSmT_{};8Ckr%H_Y"><field name="VAR" id="6;:$q!mC`a$[adUp9mEk">First_persons_vote</field><value name="VALUE"><shadow type="math_number" id="YAD]OjIqGvFmF|Qi+cEo"><field name="NUM">1</field></shadow></value><next><block type="typescript_statement" id="_|o@+_3x,%o5QiVF$*I3" editable="false"><mutation xmlns="http://www.w3.org/1999/xhtml" line0="console.log("First person's vote is " + ("" + ("" + ("" + ("" + First_persons_vote)))) + " and " + "second person's vote is " + ("" + ("" + ("" + ("" + second_persons_vote)))))" numlines="1"></mutation></block></next></block></statement></block><block type="device_button_event" id=";Z^.a3vd:5w)xG~d59G]" x="20" y="337"><field name="NAME">Button.AB</field><statement name="HANDLER"><block type="typescript_statement" id="dcMqEA;t8_4SQdnIx=KE" editable="false"><mutation xmlns="http://www.w3.org/1999/xhtml" line0="console.log("First person's vote is " + ("" + ("" + ("" + ("" + First_persons_vote)))) + " and " + "second person's vote is " + ("" + ("" + ("" + ("" + second_persons_vote)))))" numlines="1"></mutation></block></statement></block><block type="device_button_event" id="r2*[Gf8B[u|2(okH.//K" x="1645" y="337"><field name="NAME">Button.B</field><statement name="HANDLER"><block type="variables_change" id="G`~kDk/]JPBXZ-.!jU7f"><field name="VAR" id="q}R%Ql/;Ty|1x-CA2gbE">second_persons_vote</field><value name="VALUE"><shadow type="math_number" id="iuAo2:1u;wV9DXJ#TROQ"><field name="NUM">1</field></shadow></value><next><block type="typescript_statement" id="{7/Mb{yqfF8WDyhSbTim" editable="false"><mutation xmlns="http://www.w3.org/1999/xhtml" line0="console.log("First person's vote is " + ("" + ("" + ("" + ("" + First_persons_vote)))) + " and " + "second person's vote is " + ("" + ("" + ("" + ("" + second_persons_vote)))))" numlines="1"></mutation></block></next></block></statement></block><block type="device_forever" id="P`P:T*tqz/QasJDg5_5)" x="20" y="558"><statement name="HANDLER"><block type="controls_if" id="$c9t^jNW[V5J^`P_4ljS"><mutation elseif="1" else="1"></mutation><value name="IF0"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="c;Os,3j981~Vu4@r?Tf0"><field name="OP">GT</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id=".(S,E!0~!f6gJK#4vsGc"><field name="VAR" id="6;:$q!mC`a$[adUp9mEk">First_persons_vote</field></block></value><value name="B"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="QBw;A4SfQ?q;I(4f$QU3"><field name="VAR" id="q}R%Ql/;Ty|1x-CA2gbE">second_persons_vote</field></block></value></block></value><statement name="DO0"><block type="variables_set" id="*z5y%C}_DbIqs6{f{w(u"><field name="VAR" id="r?2JO/MdI@R(#h2MUkA[">People_has_the_most_vote</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="text" id="^]bwHCaH(PsAQn0OxX?N"><field name="TEXT">First person has the most vote</field></block></value></block></statement><value name="IF1"><shadow type="logic_boolean"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="av$FGg1T)F])sE=QdW?x"><field name="OP">LT</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="1|cj`5q6nfq2zj.2.Svz"><field name="VAR" id="6;:$q!mC`a$[adUp9mEk">First_persons_vote</field></block></value><value name="B"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="=%SMrPSgbReShjnHTq!s"><field name="VAR" id="q}R%Ql/;Ty|1x-CA2gbE">second_persons_vote</field></block></value></block></value><statement name="DO1"><block type="variables_set" id="SeKrBt?N=:i5$Uhq?.`K"><field name="VAR" id="r?2JO/MdI@R(#h2MUkA[">People_has_the_most_vote</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="text" id="M8eN/}?wAWiUmhtZHXLw"><field name="TEXT">Second person has the most vote</field></block></value></block></statement><statement name="ELSE"><block type="variables_set" id="7AJsri-H4~#FMD.7:0F6"><field name="VAR" id="r?2JO/MdI@R(#h2MUkA[">People_has_the_most_vote</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="text" id=":%Oh)iDCrAl5dTiI-hE@"><field name="TEXT">The vote's are the same</field></block></value></block></statement></block></statement></block><block type="device_gesture_event" id="%TKl?[vzLU4({|D$MWL^" x="769" y="558"><field name="NAME">Gesture.Shake</field><statement name="HANDLER"><block type="typescript_statement" id="aOZ=;:GQ`0=49IVBRIuV" editable="false"><mutation xmlns="http://www.w3.org/1999/xhtml" line0="console.log(People_has_the_most_vote)" numlines="1"></mutation></block></statement></block></xml>