Hacker News new | ask | show | jobs
by Ninjaneered 963 days ago
Interesting twist with a game I remember playing (physically) as a kid. Playing on a surface (non-rectangular) is warping my brain a bit, but I'm starting to get the hang of it.

I did notice the URL seems to be capturing the state of my board, but I can't figure out how that's done. Super fun though!

1 comments

I'm using a library called react-router-dom, it gives you hooks useNavigate and useParams to write & read, respectively. Then there's some compression/stringifying of state, so you get to a hash that isn't insanely long.