Create a fully functional, browser-based turn-based battle game where two players fight until one emerges victorious!
- Download the starter code and extract it.
- Initialize your Git repository from inside the extracted folder.
- Begin development based on the provided template.
- The game is built using HTML, CSS, and JavaScript.
- The base logic for Player 1 is provided.
- Your task is to implement Player 2 and ensure full game functionality.
- Replicate Player 1 logic for Player 2.
- Track player turns and update button styles using
classList(). - Alternate turns by enabling/disabling attack buttons:
- Active player's button = grey.
- Inactive player's button = red (or default).
- Add visual effects when players attack each other.
- Handle game-over state:
- Stop health below 0.
- Display winning player and end screen.
- Add a background image to the
<body>. - Comment all newly written code to explain its functionality.
- Game is bug-free and runs smoothly.
- All turn-based mechanics are fully functional.
- UI clearly reflects whose turn it is and game state.
- Project is fully commented (new code only).
- Repository follows naming convention:
FirstName_LastInitial_KnightsOfJavaScript. - Repo is private and instructional staff are collaborators.
- Push your completed project to a private GitHub repo.
- Share the repo link on Canvas for grading.
- Don’t forget to add your instructors as collaborators!