Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
SoldierB
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
SoldierB
15y ago
You can save 6 bytes by switching up the bounds checking. From "0>b.x||15<b.x||0>b.y||15<b.y" to "(b.x^16)<1||(b.y^16)<1". data:text/html,<script>S=setTimeout;function f(){do z={x:Math.floor(16*Math.rando