Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
8
Task/100-doors/MoonScript/100-doors.moon
Normal file
8
Task/100-doors/MoonScript/100-doors.moon
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
is_open = [false for door = 1,100]
|
||||
|
||||
for pass = 1,100
|
||||
for door = pass,100,pass
|
||||
is_open[door] = not is_open[door]
|
||||
|
||||
for i,v in ipairs is_open
|
||||
print "Door #{i}: " .. if v then 'open' else 'closed'
|
||||
Loading…
Add table
Add a link
Reference in a new issue