Data update
This commit is contained in:
parent
4d5544505c
commit
4924dd0264
3073 changed files with 55820 additions and 4408 deletions
|
|
@ -0,0 +1,17 @@
|
|||
!YS-v0
|
||||
|
||||
defn main():
|
||||
each line generate(10 '_###_##_#_#_#_#__#__'):
|
||||
say: line
|
||||
|
||||
defn generate(n cells):
|
||||
when n.?:
|
||||
cons cells:
|
||||
generate n.--:
|
||||
loop cs cells, ncs subs(cells 0 1):
|
||||
if cs.# >= 3:
|
||||
recur cs.subs(1):
|
||||
ncs +:
|
||||
filter(\(_:S == '#') cs.subs(0 3))
|
||||
.#.eq(2).if('#' '_')
|
||||
else: ncs + cs.subs(1)
|
||||
Loading…
Add table
Add a link
Reference in a new issue