ChromeGaming / Dot-Box

Dot-Box is a game where players take turns drawing lines between dots to create boxes. The player who completes the most boxes wins. It's a simple yet strategic game enjoyed by people of all ages.
https://chromegaming.github.io/Dot-Box/
MIT License
99 stars 188 forks source link

[New Feature]: Can add Hints and Undo Moves #383

Open shraddhha opened 4 weeks ago

shraddhha commented 4 weeks ago

๐ŸŽฎ feature Request

feature logic and basic description:

  1. Undo Functionality Description: Allow players to undo their last move, providing an opportunity to correct mistakes or reconsider their strategy.

Logic:

Maintain a history of moves in an array. Implement an undo button that reverts the last move

  1. Hint Functionality Description: Provide players with a hint, suggesting the next best move to help them strategize better.

Logic:

Analyze the current game state. Determine a strategic move (e.g., a move that will complete a box or block the opponent). Highlight the suggested move.

Point down the features

feature points Allow users to do changes it played wrongly by using undo functionality and hint may provide hints to the user when stuck.

Select program in which you are contributing

GSSoC24

Code of Conduct

github-actions[bot] commented 4 weeks ago

Hey @shraddhha! ๐Ÿ‘‹

๐Ÿ‘‰ Thanks for opening this issue. We appreciate your contribution and will look into it as soon as possible. ๐Ÿ‘‰ Donโ€™t forget to star our Dot-Box and Follow Us on GitHub ๐Ÿ‘‰ Make sure you join our Discord, we have created separate channels for all projects

Soujanya2004 commented 4 weeks ago

Hello @shraddhha , I have good experience in JavaScript and have enough knowledge to work with game applications, I would like to work on this issue and create undo and hints functionality. Please assign me this issue.

shraddhha commented 4 weeks ago

I would like to work on this issue. I will ensure consistent styling and functionality by individually updating each relevant component also I will begin working on it immediately.