https://github.com/blopez024/bryan_l_knightsofjavascript
https://github.com/blopez024/bryan_l_knightsofjavascript
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/blopez024/bryan_l_knightsofjavascript
- Owner: blopez024
- Created: 2025-04-17T01:23:43.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-17T04:17:32.000Z (about 1 year ago)
- Last Synced: 2025-04-17T15:13:16.567Z (about 1 year ago)
- Language: JavaScript
- Homepage: https://blopez024.github.io/Bryan_L_KnightsOfJavaScript/
- Size: 1.54 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# π‘οΈ Knights of JavaScript
## π― Objective
Create a fully functional, browser-based **turn-based battle game** where two players fight until one emerges victorious!
## π Getting Started
1. Download the [starter code](https://drive.google.com/file/d/1UAz7gK72ZHusX_8Q9_fkruLRz_fkAOSr/view) and extract it.
2. Initialize your Git repository **from inside** the extracted folder.
3. Begin development based on the provided template.
## π§ Game Overview
- 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.
## β
Features to Implement
- 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 ``.
- Comment all newly written code to explain its functionality.
## π§ͺ Final Checklist
- [ ] 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.
## π¬ Submission Instructions
- 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!