Welcome to the Battlegame! This Python-based text/cli game allows you to engage in epic battles and make strategic choices.
The game is authored by Lorenah M.
Clone the Repository:
git clone https://github.com/Skylar-Lorena/battlegame.git
Navigate to the Project Directory:
cd battlegame
Install Python: Ensure you have Python installed. If not, download and install it from python.org.
Run the Game:
python3 battlegame.py
In the battlegame.py file, declare variables for game characters, their hitpoints (hp), and damage. Follow the provided workshop assignment guidelines.
Use the print() and input() functions to display character options and prompt the player to choose their character.
Wrap the code in an infinite while loop, handling player choices with if statements. Display chosen character stats.
Create a second infinite while loop for a dragon battle. Simulate damage and display battle messages. Handle game outcomes.
Allow players to choose characters by typing their name.
Make character name input case-insensitive.
Implement an additional character option - Orc.
Add an option to exit the game entirely.
Ask the player if they want to play again after the game is over.
Save and run your code in the terminal, testing different options to ensure the game functions as expected.
Run the Game:
python3 battlegame.py
Copyright (c) 2023 Lorenah M.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.