Team submission for pyweek35, repo will be renamed once we have a name for the game
First install poetry following : https://python-poetry.org/docs/
curl -sSL https://install.python-poetry.org | python -
set PATH=%PATH%;%USERPROFILE%\AppData\Roaming\pypoetry\venv\Scripts
curl -sSL https://install.python-poetry.org | python3 -
export PATH="$HOME/.local/bin:$PATH"
poetry install -n
poetry run game
- Work in the
dev
branch before merging into themain
- Rebase your work before pushing, try to keep the git history clean
- Don't push directly to any branch, do a PR
To isolate dependencies and manage packages for this project, we recommend using Python's built-in venv
module. Follow these steps to create and activate a virtual environment:
-
Open a command prompt and navigate to the project directory.
-
Create a virtual environment using the following command:
python -m venv venv
This will create a virtual environment named venv
inside the project directory.
- Activate the virtual environment by running:
.\venv\Scripts\activate
Your command prompt should now show the virtual environment's name, e.g., (venv)
.
-
Open a terminal and navigate to the project directory.
-
Create a virtual environment using the following command:
python3 -m venv venv
This will create a virtual environment named venv
inside the project directory.
- Activate the virtual environment by running:
source venv/bin/activate
Your terminal prompt should now show the virtual environment's name, e.g., (venv)
.
With the virtual environment activated, install the required packages using:
pip install -r requirements.txt
When you are done working with the project, you can deactivate the virtual environment by running:
deactivate
This will return your terminal or command prompt to its normal state.
We use pre-commit to run some checks before committing. To set it up, run:
pre-commit install
This will install the pre-commit hook into your local git repository. Now, whenever you commit, the pre-commit hook will run and check for any errors. If there are any errors, the commit will fail and you will have to fix them before committing again.
All code is licensed under the MIT License.
The licenses for the /assets/sounds
are as follows:
- Glacier by SalmonLikeTheFish is under the licence CC BY-NC-SA 4.0
- Insomnia by David Hilowitz is under the licence CC BY-NC 4.0
- Japan by Yakov Golman is under the licence CC BY 4.0
- All other sound effects in
/assets/sounds
are under the [Mixkit Sound Effects Free License]](https://mixkit.co/license/)