- Download the latest windows release zip from: https://github.com/Thomas-Hopkins/CS4500-FrogGame/releases
- Extract and run
froggame.exe
- Download and install Python 3.10.x If you don't already have it.
- Download latest source release zip from: https://github.com/Thomas-Hopkins/CS4500-FrogGame/releases
- Extract zip into a folder.
- Run
start.bat
if on Windows orstart.sh
if on MacOS/Linux.- If and only if this has issues, please create a file named
PYTHON_PATH
with no file extension. Inside of it insert the full path to your python executable. Then retry this step. - Project will download dependencies and setup.
- If and only if this has issues, please create a file named
- Game should start. Rerun
start.bat
orstart.sh
to re-launch game.
- Download and install Python If you don't already have it.
- I recommend going for 3.10.x for the latest language features but earlier versions as far back as 3.5.x may work.
- If you encounter issues please update to a more recent version.
- Clone the repository onto your local computer.
- Recommended to use: https://desktop.github.com/
- Alternatively use Git CLI if you're familiar with git commands: https://git-scm.com/
- Recurisvely clone to make sure to download submodules.
- If using git CLI:
git clone --recursive https://github.com/Thomas-Hopkins/CS4500-FrogGame.git
- If using git CLI:
- Create a Python virtual environment, and then pip install requirements-dev.txt
- See the "Setup & Running" section for more information.
- Never push directly to
main
. Please branch the repository, push your branch to remote, and submit a pull request.- This should help mitigate frequent merge conflicts.
- Before/after you submit your pull request, if necessary, please pull and merge
main
into your branch and handle any merge conflicts.
Automatic Steps (Recommended):
- Run
start-dev.bat
if on Windows orstart-dev.sh
if on MacOS/Linux.
Manual Steps:
- Create a Python virtual environment to avoid dependency conflicts.
- Run
python -m venv .\.venv
- Run
.\.venv\Scripts\activate.bat
on Windows orsource tutorial-env/bin/activate
on Mac/Linux
- Run
- Run
python -m pip install -r requirements-dev.txt
- You may need to update pip
python -m pip install --upgrade pip
- You may need to update pip
- Run
pre-commit install
- Run
cd source
- Run
python -m main
- Requires Nuitka, should be installed if you followed "Setup & Running."
- Nuitka requires a C compiler to be installed and accessible. Read more here.
- Windows has a build script
build.bat
running this should produce an executable in./build/
- This script's commands can be adapted for MacOS/Linux
- By default the script produces a standalone executable and copies the resources to the folder. Including the resources directory to produce a single executable caused issues in file pathing.
If you are using the recommended method of running this will install and run the automatic code formatter "Black" on every commit, so that you don't have to worry about code style. If you wish to quickly auto-format your code before a commit, run black .
in the root folder.
We will try and follow PEP-8 style guide as closely as possible. In particular:
- Use
snake_case
rather thancamelCase
for all identifiers and function defintions. - Use
CapWord
for class names. - Use
lowercase
for package/module/folder names, usesnake_case
if necessary. - Use 4 spaces for indentation rather than tabs. (most code editors will automatically convert).
- Use double quotes
"
rather than single quotes'
for strings. - Use type hinting for function return types and parameter lists. Variable declaration type hinting is not required but encouraged.
- Nilima Kafle
- Noah Gazaway
- Thomas Hopkins
- Wyatt Wolf