sabrina-aip / spellcheck

a very silly spelling bee game
75 stars 39 forks source link

Add custom game mode. #45

Open Jsoto22 opened 7 months ago

Jsoto22 commented 7 months ago

Adding a custom game mode where a player can set how many words per round they want to, and same for number of rounds (with difficulty). For example, if a player wants 5 rounds of hard words, with 10 words each round.

To extend this idea, allowing users to select words from the provided dictionaries. This could be used to practice specific words for test.

As a side note, I've forked the repo and refactored most of the code to be more modular, giving flexibility for future expansion. Might put though a pull request next weekend when I have more time to contribute. In the meantime, I'm going to try and finish some more of the refactoring, then finish off touching up the UI/UX with responsiveness this weekend.

HusseinBaraja commented 2 months ago

man, I really like your ideas, I was thinking about these ideas while playing around on the website. Please tell me you have done these changes in your fork Thanks

Jsoto22 commented 2 months ago

Hey @HusseinBaraja. Sadly I haven't touched the forked repo for a while but I can revisit it this weekend. If I remember correctly, the last thing I put together was an interface to build a multi round custom game. I can get back to you that soon.

Jsoto22 commented 2 months ago

Actually, I was mistaken. I beleive I finished the UI and code behind custom games. The last thing I remember working on was mass selection/deleting on the input. It allowed the user to move the position of where the next character would be entered, and same fore deleting a character. It essentially works like a normal input but was fairly buggy when the selection index would change on specific inputs, although it was self correcting.

Again I'll check it out soon and maybe push those changes if they're ready.

Jsoto22 commented 2 months ago

man, I really like your ideas, I was thinking about these ideas while playing around on the website. Please tell me you have done these changes in your fork Thanks

@HusseinBaraja just committed a push to my fork. It's slightly unfinished, and again, the input selection is still buggy.

The custom game interface allows you to add multiple players and rounds. For the rounds, you can select a difficulty and how many words for that round. The minimum is 5 words and maximum of 20 words per round.

I don't believe I've updated the results page to display the results properly tbh. I'm a bit busy so I don't really have time to complete that portion right now.

HusseinBaraja commented 2 months ago

@Jsoto22 Sorry for the late reply, I just checked it out, it's really good. I intend on adding more features to it so I will fork your repo Thanks a lot

Jsoto22 commented 2 months ago

Thanks. I'd say it's not bad for 5 days of work. I hope it's easy to work with, but pull request #46 has a break down of the APIs to each component if things seem ambiguous.