shrawani21 / gamer_21

Dots & Boxes
MIT License
55 stars 116 forks source link

Incorrect Extra Chances Assigned When Drawing Lines at Corners #115

Open prashantsingh29 opened 3 weeks ago

prashantsingh29 commented 3 weeks ago

Hello @shrawani21 ,

I have identified an issue in the game. According to the rules of the game, a player should be given an extra chance only if they complete a box. However, I have observed that the current implementation erroneously assigns extra chances to the player when they draw a line at the corners, even if no box is completed.

This behaviour deviates from the game rules and affects the fairness of the game. I would like to request to be assigned this task so I can work on resolving this issue.

https://github.com/shrawani21/gamer_21/assets/110767097/c9815310-3466-4b4d-a879-4e3e3a804f86