Skip to content

blopez024/Bryan_L_KnightsOfJavaScript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🛡️ 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 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 <body>.
  • 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!

Releases

No releases published

Packages

 
 
 

Contributors