4 ms·
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 ge
by Ninjaneered 3y 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!
- RheingoldRiver 3y agoI'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.