Skip to content

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.

License

Notifications You must be signed in to change notification settings

BrittanyGates/The-Infected-Land

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Infected Land

A piece of barren land infected by evil creatures like wolves, bats, ghouls, mummies, wizards, and skeletons.

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.

Project Description

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.

Getting Started

Dependencies

  • 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 Options

Executing The Program

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.

  1. Open the Terminal or Windows Terminal/Command Prompt
  2. Change directory (cd) to the src 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
  3. Type the following command to run the program: python main.py or python3 main.py

Help

Please file a new issue using the Issues tab on the repo.

Author

Version History

  • 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

License

This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgments

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages