Lurker News

Comments (104) 34 threads

Show all comments

Showing thread 19 of 34

mLuby3 replies#
Super cool! Anyone recognize what this makes?

  map=Array(7).fill(Array(7).fill(3)).map((a,i)=>a.map((x,n)=>[0,i>3&&n<3?1:3]));drawMap()
jdauriemma1 reply#
Can you be more specific?
mLuby#
Oh awesome, the one-liner was because I didn't see how to save/share a design.
thinkingkong#
That creates a pre-filled two dimensional array as a one-liner.
atum47#
nice