Timeline for Shortest Code to randomly place points and connect them
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 24, 2014 at 13:09 | history | edited | scrblnrd3 | CC BY-SA 3.0 |
deleted 30 characters in body
|
Aug 24, 2014 at 11:02 | comment | added | manatwork |
Not a big difference. Same 1 for to set up the array, same 2 for s to generate the combinations, same canvas methods to do the drawing… Wait a moment! Did I enumerated 3 for s? Very bad. 2 for s, 210 characters: jsfiddle.net/e866azzs/9
|
|
Aug 23, 2014 at 15:38 | comment | added | Alexander Craggs | The first time I tried manatwork's jsfiddle, I thought the alert box needed a password! I was perplexed. How stupid a person can be. I believe this is sufficiently different to another persons answer to warrant another place in the leader board. Do other people think this is different enough? | |
Aug 22, 2014 at 17:33 | comment | added | manatwork | 219 characters: jsfiddle.net/e866azzs/5 | |
Aug 22, 2014 at 17:13 | history | edited | scrblnrd3 | CC BY-SA 3.0 |
deleted 19 characters in body
|
Aug 22, 2014 at 17:08 | comment | added | manatwork |
Make the canvas tag self-closing and remove the single quotes around the id value: <canvas id=q /> . (Note that you have to leave one space between the last attribute value and the self-closing / .) BTW, in Firefox works fine without m.floor() and ~~ .
|
|
Aug 22, 2014 at 16:20 | comment | added | William Barbosa |
You can use ~~ instead of m.floor to save 5 bytes
|
|
Aug 22, 2014 at 14:03 | comment | added | Alexander Craggs | This is verified, I've gotten it to work! | |
Aug 22, 2014 at 14:02 | history | answered | scrblnrd3 | CC BY-SA 3.0 |