shrawani21 / gamer_21

Dots & Boxes
MIT License
55 stars 117 forks source link

Update box.py #58

Closed madhupashish closed 1 month ago

madhupashish commented 1 month ago

The updated code includes several notable changes and improvements. Type hints have been added to enhance code readability and facilitate type checking. The code has been refactored to improve variable names and function signatures, enhancing overall clarity. Optional types are now used for properties that can be None, ensuring better handling of optional values. Additionally, property getter and setter methods for _top, _bottom, _left, and _right have been standardized, providing consistent property handling throughout the code.