ChromeGaming / Formation-Absent

Formation Absent is a turn-based puzzle - an abstract representation of a battle. In each of the 13 stages two armies are colliding. As a member of the Green side, you’ll have to restore the lost battle formation of the Green party. Move through the battlefield..
https://chromegaming.github.io/Formation-Absent/
MIT License
7 stars 28 forks source link

Refactor Code and Improved code readability #16

Closed aditya-bhaumik closed 4 months ago

aditya-bhaumik commented 4 months ago

PR Description 📜

This PR addresses the issue of poor code readability and maintainability in the project’s HTML files. The original code had inconsistent formatting. I have separated the code from the 2 html files to their respective css and javascript files also i have improved the format of the code in styles_shrinked.css and styles_shrinked.js.

This reorganization improves the maintainability of the codebase, making it easier for future developers to understand and extend the project. The separation of concerns ensures that HTML, CSS, and JavaScript are handled independently

Changes made

Improved formatting and indentation for better readability. Created two new CSS files (styles1.css and styles2.css) for the two HTML files. Organized styles with consistent formatting. Created two new JavaScript files (script1.js and script2.js) for the two HTML files. Improved code readability with proper formatting. Linked each HTML file to its respective CSS and JavaScript files

Fixes #11


Mark the task you have completed ✅

image

image



Thank you soo much for contributing to our repository 💗

aditya-bhaumik commented 4 months ago

@roy7077 can you please review this pull request and merge this with level 1 label under GSSoC'24

roy7077 commented 4 months ago

@aditya-bhaumik Add a screenshot of the working website

aditya-bhaumik commented 4 months ago

image

image

image

aditya-bhaumik commented 4 months ago

@roy7077 can you please put the gssoc labels for this pull request

roy7077 commented 4 months ago

@aditya-bhaumik sure