I'm trying to figure out leaderboards. Hopefully soon™

Also this

nostr:nevent1qqs8acp9834lal6zyg8wvzgmylxkrxh447uas6zd232wmre0dzggejgppemhxue69uhkummn9ekx7mp0qgsg6r2jrh0f9j925yxryahu2aswmfm9gw853pdhp5yk5j0ed93gljsrqsqqqqqpn97m2x

Reply to this note

Please Login to reply.

Discussion

I did it super ghetto awhile back

https://github.com/satoshipuzzles/Snakestr

If you let anyone sign the high score event, anyone can post any high score they want. Would be better if the there was a private key for the game and the game signed and broadcasted high score events.

Yeah that’s a solid solution

Still not great for a leaderboard especially if a lot of people are playing. Centralized database would be better. You could allow nip-98 access to the endpoints to retrieve the scores.

Yeah ideally would have a dedicated game relay(s) with white listed NIP-05s

if the game is browser based.. there is no way for you to ever have an anti-cheat system. to do that, you have to fully control all the hardware and install your spyware.

so, you might as well just have fun with it without all the complication.

Centralized db to store the scores would still be easier to query and make sure everyone sees the same leaderboard though

How do I log in on mobile? Do I need some sort of plugin or specific browser?

Any browser with an extension. I heard that keychat also works on mobile 🤙

The login should be super complex so scores like this dont easily show. Geez.