logoalt Hacker News

relast Tuesday at 8:49 PM1 replyview on HN

Here's a console command you can run to increase the snake length immediately, and thus the difficulty:

   (() => { let count = 50; const delay = 100; const interval = setInterval(() => { addSnakeNode(); if (--count <= 0) clearInterval(interval); }, delay);})()

Replies

londons_explorelast Tuesday at 11:01 PM

Why wrap in a lambda?

show 2 replies