2D display game with no graphical package. Everything is created by me for your benefit.
This guide will help you install Python on your computer using the terminal.
-
Download the Python installer from the official website: Python Downloads
-
Open your terminal (Command Prompt) and navigate to the directory where the installer is downloaded. You can use the
cd
command to change directories. -
Run the installer with the following command:
start python-installer.exe
-
Follow the instructions in the installer. Make sure to check the box that says "Add Python to PATH" before you click "Install Now".
-
Open Terminal.
-
Check if Python is already installed by typing
python --version
. If Python 2.7.x or older is installed, you should still install Python 3. -
Install Homebrew (if not already installed) by typing
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
-
Once Homebrew is installed, type
brew install python3
-
Open Terminal.
-
Check if Python is already installed by typing
python3 --version
. -
If Python 3 is not installed, you can install it by typing
sudo apt-get install python3
on Debian-based distributions orsudo yum install python3
on RHEL-based distributions.
After installation, you can verify the installation by typing python --version
(Windows, MacOS) or python3 --version
(Linux) in the terminal.
The commands and steps might slightly vary based on the OS version and the system settings. Always refer to the official Python documentation or your OS documentation for the most accurate information.
-
Go to Green Code Box on Top of the Page
-
Press 'Download Zip'
-
Open zip in folder and extract all
-
Right click terminal-dungeon folder
-
Press copy
-
Go to bash or terminal depending on computer
-
Type
cd
then right click on same line cd is on to paste. Should look something likecd user/path/to-folder
-
Press enter
-
Type
pip3 install -r requirements.txt
-
Make sure terminal size is full screen
-
Lastly, type
python3 adventureGame.py