shrawani21 / gamer_21

Dots & Boxes
MIT License
55 stars 116 forks source link

Update box.py #126

Open madhupashish opened 2 weeks ago

madhupashish commented 2 weeks ago

The current implementation of the Box class has a potential issue related to the sides attribute. When setting a side (top, bottom, left, right) that has already been set, the sides attribute is incremented again, which is not desired behavior. This can lead to incorrect counts of the sides and incorrect increment of BOXES_DONE