hryanjones / guess-my-word

A word guessing game, where you only know whether my word is before or after your guess. (An unofficial clone of the game previously available on simbase.org)
https://hryanjones.com/guess-my-word/
MIT License
64 stars 26 forks source link

Custom leaderboard or multi-user filtered results #27

Open davidgustav opened 4 years ago

davidgustav commented 4 years ago

My friends and I would love a way to see a leaderboard with only us on it in addition to the main board. That way we don't have to search for each one of us each time and can easily see how we did compared to each other.

Ideally we'd be able to specify the usernames to pull into that view and could modify the list as more friends start playing.

Some thoughts I had in case someone else can think about it before I can attempt a PR.

hryanjones commented 4 years ago

One workaround, assuming your friends aren't super tied to their usernames and associated scores would be to have a common acronym that's in everybody's name. There's a group from Ravelry LSG that does this:

https://hryanjones.com/guess-my-word/board.html?search=LSG

davidgustav commented 4 years ago

Sometimes it's the easiest solutions... Yeah that makes total sense. I'm not sure we're humble enough to start over. Will think about it some more. I've got a workaround w/ a hardcoded user list, but that's just sitting in a local file that I can hit and screenshot for them. Nothing worthy of sharing at this point.

hryanjones commented 4 years ago

Also, it wouldn't be too hard to add another URL param that's like "userFilter=someone,another person" that would filter down the list (assuming a username doesn't have a "," in it). It'd be pretty easy to implement even without any extra UI portions and I'd be likely to approve that PR pretty quick :)