Wizards vs Robots is a turn-based combat game that runs in a browser. You can play as a wizard or a robot and engage in combat with a non-player character (NPC) robot.
- Choose your character: Play as a wizard or a robot, each with unique attributes like health, attack speed, chance to hit, and damage range.
- Real-time combat: Enjoy turn-based combat with an NPC robot. The health bars and combat log update in real time during combat.
- Detailed combat log: Keep track of each round with a combat log that records hits, misses, and defeats.
- Easy to play: Simply click the "Attack" button to initiate combat.
- End of game messages: Once the combat ends, a styled message appears over the game indicating "You Win!" or "You Lose!" depending on the outcome.
To play the game, clone this repository and open the index.html
file in your web browser. No additional setup is required.
- Choose your character: Select either the wizard or the robot as your character.
- Click the "Attack" button to begin combat.
- Watch the combat log and health bars for updates on each attack.
- Combat continues until either the player or the NPC robot's health reaches zero.
- A "You Win!" or "You Lose" message will appear on the game screen, indicating the result of the combat.
This project uses Jasmine for unit testing. To run the tests, open the SpecRunner.html
file in your browser.
- Add more character options, each with their own unique abilities.
- Implement a leveling system where characters can gain experience and level up.
- Add a variety of different enemies to fight against.
- Implement a more complex combat system, with options for different types of attacks, defense moves, and special abilities.
If you'd like to contribute to this project, please feel free to submit a pull request or open an issue with your suggestions or bug reports.
This project is licensed under the MIT License.
This game is developed using the ChatGPT model by OpenAI.