shrawani21 / gamer_21

Dots & Boxes
MIT License
55 stars 118 forks source link

Enhancing Code Readability and Maintainability #6

Closed PrajwalaY26 closed 1 month ago

PrajwalaY26 commented 1 month ago

As part of my contributions to GSSoC’24, I’ve made several improvements to the codebase to enhance its readability and maintainability. Here’s a summary of the changes I’ve made:

Modularized the Code: I’ve broken down complex functions into smaller, more manageable functions. This makes the code easier to understand and test. Added Global Constants: I’ve defined global constants for values that are used in multiple places. This makes the code easier to maintain as we only need to update these values in one place. Added Constants for Magic Numbers: I’ve replaced magic numbers with named constants. This makes the code more readable and helps prevent errors that can occur when the same magic number is used in multiple places.

These improvements significantly enhance our code quality by making it more readable and easier to maintain. I look forward to receiving feedback on these changes.

@shrawani21, could you please review this pull request?

TonyStark-47 commented 1 month ago

Your changed code does not even run. It quits automatically. But the older version is running fine.