Skip to content

enhanced ui and improved readability of code by renaming variables and removing not needed comments of Tic-Tac-Toe Game#929

Open
Prasoon52 wants to merge 5 commits intoAyushparikh-code:mainfrom
Prasoon52:main
Open

enhanced ui and improved readability of code by renaming variables and removing not needed comments of Tic-Tac-Toe Game#929
Prasoon52 wants to merge 5 commits intoAyushparikh-code:mainfrom
Prasoon52:main

Conversation

@Prasoon52
Copy link

@Prasoon52 Prasoon52 commented Oct 9, 2025

Refactored the entire JavaScript codebase for the Tic-Tac-Toe game to use modern practices and improve readability. Added a 'Main Menu' button to enhance user experience.
Replaced all inline 'onclick' attributes with '.addEventListener()' for better separation of concerns and code management.
Renamed variables and functions to be self-explanatory
Added a 'Main Menu' button on the results screen
Updated the HTML with accessibility attributes
https://github.com/Ayushparikh-code/Web-dev-mini-projects/issues/
resolves #903
resolves #926
please let me know if any changes are needed

@Prasoon52
Copy link
Author

hello @Ayushparikh-code please do let me know if any changes are needed

Copy link

@codeCraft-Ritik codeCraft-Ritik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

“Nice approach — the logic flows well and is readable.”

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Project title Reduce comments script.js in Tic-Tac-Toe Game

2 participants