An open API service indexing awesome lists of open source software.

https://github.com/blopez024/bryan_l_knightsofjavascript


https://github.com/blopez024/bryan_l_knightsofjavascript

Last synced: about 1 year ago
JSON representation

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!