cdot / Xanado

Scrabble-like game (single and multiplayer) with dictionaries and computer opponents. Has boards for Scrabble, Super Scrabble, Words with Friends, Lexulous etc. and dictionaries in English, French, Catalan, and German. Try it at https://cdot.github.io/Xanado/dist/standalone_games.html
25 stars 9 forks source link

Letter distribution chart on the right #16

Closed pkolano closed 2 years ago

pkolano commented 2 years ago

Would be nice to have a letter distribution chart on the right. Don't know if it could be used given your changes to the code, but there was a pull request to the hanshuebner version that did this at https://github.com/hanshuebner/html-scrabble/pull/77. Thanks!

cdot commented 2 years ago

I looked at that PR but decided not to follow up on it because it uses so much screen real estate, and would give an unfair advantage to players on desktop and tablet devices versus those on mobiles (yeas, I have a couple of those!). However it would be easy enough to add, and could be useful for those learning to play at competition level where tracking the remaining letters in the bag becomes an issue. The PR as given would not work with the current code, but the principle would be simple enough to apply. I'd want it to be optionally enabled by the game creator, and optionally displayed under user settings control. I'd be happy to entertain a PR.

cdot commented 2 years ago

I just (mea culpa) noticed that the letter distribution chart is printed on scrabble boards. So the distribution chart should be showable, for scrabble boards at least. My inclination is to do it as a dialog, though.

cdot commented 2 years ago

It's there in 2.1.2