- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 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
onStart =: verb define
wd 'pc game15; pn 15; bin hv; bin h'
i =. 0
for_text. ":@>:0,~?~15 do.
name =. 'a', ":i
wd 'cc ', name , ' button; cn ', text
if. 3 = 4|i do.
wd 'bin z; bin h'
end.
wd 'set ', name, ' wh 80 80'
". 'game15_', name, '_button =: buttonclicked@]&', (":i)
i =. >:i
end.
wd 'set a15 text'
wd 'cc count static; cn 0'
count =: 0
wd 'bin z'
wd 'cc restart button; cn restart'
wd 'pshow'
empty =: 15
0$0
)
buttonclicked =: verb define
if. 1 = (+/)(**)(-/@:<.@:%&4 , -/@:|~&4) empty, y do.
wd 'set a', (":empty), ' text ', wd 'get a', (":y), ' text'
wd 'set a', (":y), ' text'
empty =: y
count =: >:count
wd 'set count text ', ":count
end.
)
game15_restart_button =: verb define
wd 'pclose'
wd 'activity base'
)
wd 'activity base'