A CLI game where you (as the Hero) must defeat the Villain's evil creations to cleanse the infection harming the land and its residents.
This game uses the Terminal (Linux and macOS) or the Windows Terminal to run the game. It takes in user input via the keyboard to "Attack" or "Block" the enemy. Both the player's and the enemy's attack are attached to a random number generator that determines if the action is successful or not.
- Python 3 (latest release is recommended).
- Linux OS users: Python is already installed
- macOS users and Windows users: Python installation files are available from the official Python website.
- Rich Python Package
- This package can be installed for various operating systems from PyPi here.
- Download the program via one of the two options below:
- Clone the repo: https://github.com/brittbot-bgates/the_infected_land.git
- Download the ZIP file from the repo: https://github.com/brittbot-bgates/the_infected_land/archive/refs/heads/master.zip
I recommend executing this program in a Python Virtual Environment (virtualenv) to install the dependencies easier.
Learn more about virtualenvs, including how to create them, from the official Python Documentation.
- Open the Terminal or Windows Terminal/Command Prompt
- Change directory (
cd
) to thesrc
directory of the program's directory path using one of the examples below:- Linux or macOS:
cd /home/$username/Downloads/The-Infected-Land-master/src
- Windows:
cd \Users\$username\Downloads\The-Infected-Land-master\src
- Linux or macOS:
- Type the following command to run the program:
python main.py
orpython3 main.py
Please file a new issue using the Issues tab on the repo.
- Brittany Gates
- Latest release notes as of January 2025
- Refactored the project to use the Rich package to improve the text displayed on screen.
- Corrected the logic for all the
try/except
statements. - Added and/or fixed docstrings in various modules.
- Latest release notes as of late December 2024.
- Improved the centering of the displayed text layout
- Consolidated multiple related modules into new modules
- Fixed typos
- Initial release
This project is licensed under the MIT License. See the LICENSE file for details.
- Dominique Pizzie for the simple README template