-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.blocks
79 lines (79 loc) · 7.78 KB
/
main.blocks
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable id="N*(G72tU1@(*(QgC[ahn">Rock paper scissors</variable></variables><block type="device_button_event" id="0srMUCy%qrgKwZUC*~fA" x="-1852" y="-1904"><field name="NAME">Button.A</field><statement name="HANDLER"><block type="basic_show_icon" id="$tGH#QC,-qnqjXsM+DEb"><field name="i">IconNames.Sad</field><next><block type="basic_show_icon" id="LP1r4xUWOj;N17uqLKjF"><field name="i">IconNames.Confused</field><next><block type="basic_show_icon" id=";=@N:vcg6LwoL!@k9o8J"><field name="i">IconNames.Happy</field><next><block type="basic_show_icon" id="+J.TAS7UepMX{H2ga@Xg"><field name="i">IconNames.Heart</field><next><block type="device_show_leds" id="Q^UY~r_N3Ld!Bv%x%`5r"><field name="LEDS">`
# # # # #
. . # . .
. . # . .
. . # . .
# # # # #
`</field><next><block type="device_pause" id="oFOysK{T-Dj*d)2y^Zu_"><value name="pause"><shadow type="timePicker" id="kEg4ec79dy/u{Z;wxSco"><field name="ms">1000</field></shadow></value><next><block type="device_show_leds" id="Y.Hf^y.-H.5)+a*A$cxt"><field name="LEDS">`
. # . . .
. # . . .
. # . . .
. # . . .
. # # # .
`</field><next><block type="device_show_leds" id="rt}:x3J{UcEcsFS$w45!"><field name="LEDS">`
. # # # .
# . . . #
# . . . #
# . . . #
. # # # .
`</field><next><block type="device_show_leds" id="CJlwxHvft3cXCL5O}.KJ"><field name="LEDS">`
. . . . .
# . . . #
# . . . #
. # . # .
. . # . .
`</field><next><block type="device_show_leds" id="9#X8!8MRZ#Lq_@H%+kvK"><field name="LEDS">`
. # # # .
. # . # .
. # # # .
. # . . .
. # # # .
`</field><next><block type="device_pause" id="l-:QSBD14jJTnby6gd(k"><value name="pause"><shadow type="timePicker" id="=6t?2zp!bqA29AlcR@~S"><field name="ms">1000</field></shadow></value><next><block type="device_show_leds" id="`XfT)Uw=wH$H[FOr?ikd"><field name="LEDS">`
# . . . #
. # . # .
. . # . .
. . # . .
. . # . .
`</field><next><block type="device_show_leds" id="x4YE_Eew|z`(,Ocb6+_P"><field name="LEDS">`
. # # # .
# . . . #
# . . . #
# . . . #
. # # # .
`</field><next><block type="device_show_leds" id="YhMp[cnG9cD{qOZ:fb3g"><field name="LEDS">`
. . . . .
# . . . #
# . . . #
# . . . #
. # # # .
`</field><next><block type="device_pause" id=")O#4]ptbFWGU;-W`+}DQ"><value name="pause"><shadow type="timePicker" id="QeRq|)0t%2:p[fD,`w-V"><field name="ms">1000</field></shadow></value><next><block type="device_print_message" id="{-6[%.|FE.9pLA2mZ@Pq"><value name="text"><shadow type="text" id="E}(rH^HYOOj9Z!qLZpq)"><field name="TEXT"> I love you!</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type="device_forever" id="D:1F=34x_aT%Q_pDdrop" x="336" y="-112"></block><block type="pxt-on-start" id="vqpGOol#.Y**-qkz]|L~" x="0" y="0"></block><block type="device_forever" id="EzGWjMH:mNR^g@hM[oSq" x="187" y="-3"></block><block type="device_gesture_event" id=",i9ipx.R3ogL^?z?BCOS" x="382" y="-4"><field name="NAME">Gesture.Shake</field><statement name="HANDLER"><block type="device_show_number" id="eBM$g?K(6y/QqwI/$LgD"><value name="number"><shadow type="math_number" id="EYP03fhl56*K#v~^]?lu"><field name="NUM">1</field></shadow></value><next><block type="device_show_number" id="gM6VU..vOu8HBsZP:Gl("><value name="number"><shadow type="math_number" id="1uwbay4UMu`[d^SH@imN"><field name="NUM">2</field></shadow></value><next><block type="device_show_number" id="k3o9?@w}%*U42ri.5k9Y"><value name="number"><shadow type="math_number" id="vE:4tlKENq+:leH+eiHp"><field name="NUM">3</field></shadow></value><next><block type="variables_set" id="kz-Yy`9{CKujk3WHj4)p"><field name="VAR" id="N*(G72tU1@(*(QgC[ahn">Rock paper scissors</field><value name="VALUE"><shadow type="math_number" id="y*xaB3r/%`];TxG1^sfc"><field name="NUM">0</field></shadow><block type="device_random" id="TB{?mklRf!|OkpZY*ZhI"><value name="min"><shadow type="math_number" id="`*YLK$!pRKYapajT]V|d"><field name="NUM">1</field></shadow></value><value name="limit"><shadow type="math_number" id="PVY3=}s3!]`50rprYQU/"><field name="NUM">5</field></shadow></value></block></value><next><block type="controls_if" id="!n|$luNl^nUq8Fbw@o)E"><mutation elseif="3" else="1"></mutation><value name="IF0"><shadow type="logic_boolean" id="LBT:fgAiI8B$N(vA2~5G"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="BQ!vqzf]yHD#U2|6/pU:"><field name="OP">EQ</field><value name="A"><shadow type="math_number" id="b/=taNe7Hfdh,7waKtRP"><field name="NUM">0</field></shadow><block type="variables_get" id="uD#d7KKzlU-(qL^/dXqS"><field name="VAR" id="N*(G72tU1@(*(QgC[ahn">Rock paper scissors</field></block></value><value name="B"><shadow type="math_number" id="X/{3z-9E6W@}(eHo)m*Q"><field name="NUM">1</field></shadow></value></block></value><statement name="DO0"><block type="device_show_leds" id="a)OU;L[L,q/9g?P7l9!I"><field name="LEDS">`
. # # # .
# # # # #
# # # # #
# # # # #
. # # # .
`</field></block></statement><value name="IF1"><block type="logic_compare" id="zwaK{4DE$(D.L[Q{vE`v"><field name="OP">EQ</field><value name="A"><shadow type="math_number" id="E{.WBkr8#e)EUXv~O6L,"><field name="NUM">0</field></shadow><block type="variables_get" id="%~]tBM+^{8{9T~.d^^RI"><field name="VAR" id="N*(G72tU1@(*(QgC[ahn">Rock paper scissors</field></block></value><value name="B"><shadow type="math_number" id="]1rA|L[CxKEAHS5U~a5%"><field name="NUM">2</field></shadow></value></block></value><statement name="DO1"><block type="device_show_leds" id="A+sG1IY!}jJrOj7^PX7_"><field name="LEDS">`
# # # # #
# # # # #
# # # # #
# # # # #
# # # # #
`</field></block></statement><value name="IF2"><block type="logic_compare" id="X.tENk;ptkJ_E}+]j?zj"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="cr:2dp}x8y7ix%-1MYa{"><field name="VAR" id="N*(G72tU1@(*(QgC[ahn">Rock paper scissors</field></block></value><value name="B"><shadow type="math_number" id="{sH/b2`w,3#Vl5|nWn%n"><field name="NUM">3</field></shadow></value></block></value><statement name="DO2"><block type="device_show_leds" id="fhaIOB4G0k|lh21}oxhP"><field name="LEDS">`
# . . # #
. # . # #
. . # # .
. # . # #
# . . # #
`</field></block></statement><value name="IF3"><block type="logic_compare" id="b~$?Fo1c=Q(@ltcL,FVK"><field name="OP">EQ</field><value name="A"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="variables_get" id="c,1+rc+p+]j)Kh;4CCcr"><field name="VAR" id="N*(G72tU1@(*(QgC[ahn">Rock paper scissors</field></block></value><value name="B"><shadow type="math_number" id="{|^}3uBEePI*!.MMhku."><field name="NUM">4</field></shadow></value></block></value><statement name="DO3"><block type="device_show_leds" id="w3,*ayr}kTBiFs7]YuyS"><field name="LEDS">`
. # # # .
# . . . #
# . . . .
# . . . .
. # # # #
`</field></block></statement><statement name="ELSE"><block type="device_show_leds" id="i45+8`xiFjd3mtn@3Sd["><field name="LEDS">`
# # . # #
# # . # #
# # . # #
# # # # #
. # # # .
`</field></block></statement></block></next></block></next></block></next></block></next></block></statement></block></xml>