Re:Show HN: Looptap – A minimal game to waste your time
by ElbertF on Thursday January 13, 2022 @09:49PM
(#29930059)
Nice! Managed to shave off a couple of bytes:
setInterval("l=loopTapApp;b=l.getBallAngle();[a,c]=l.arc;b+6>a&b-6<c&&l.tap(new Event(1))")
Re:Show HN: Looptap – A minimal game to waste your time
by axiosgunnar on Thursday January 13, 2022 @08:04PM
(#29929278)
This entire comment thread is hilarious
Re:Show HN: Looptap – A minimal game to waste your time
by Datagenerator on Friday January 14, 2022 @01:12AM
(#29931149)
Strangely enough this shorter version reads and clicks better into my tiny brain
I didn't peek and ended up with the same solution as you, so for an extra bit of fun I tried to golf it to be as short as possible. There's probably room for much improvement: (94 chars)
setInterval("l=loopTapApp;b=l.getBallAngle();a=l.arc;b+6>a[0]&b-6<a[1]&&l.tap(new Event(1))")