PyDew Valley is a project originally created by ClearCode in Python using pygame-ce.
This expanded version will be used by the University of Zurich's Department of Psychology in an experimental study in psychology. For more details on the game levels, please click here. This project is due for completion on November 3rd 2024 (Formerly September 1st, 2024).
For more information, please contact s.kittelberger[at]psychologie.uzh.ch.
This project requires Python 3.12 or above.
Clone this repository:
git clone https://github.com/sloukit/pydew-valley-uzh.git
Create and activate a virtual environment:
Linux/MacOS
python3 -m venv venv
source venv/bin/activate
For Windows
python -m venv venv
venv\Scripts\activate
Install dependencies
pip install -r requirements.txt # For running the game (runtime dependencies)
pip install -r requirements-dev.txt # For local development
pip install -r requirements-test.txt # For running tests
Run this project
python main.py
See CONTRIBUTING.md for more information on how contributions can be made.
We use Ruff for linting and formatting. Run pip install -r requirements-dev.txt
to install it and other relevant dependencies.
[!IMPORTANT] Before opening a PR, please run the following command to ensure that your code is formatted and doesn't upset the Ruff linter:
python formatlint.py
Or alternatively, run the following commands individually:
ruff format . && ruff check --include I --fix . # format code and sort imports ruff check . # Run linting and perform fixes accordingly, or use '# noqa: <RULE>' followed by a comment justifying why the rule is ignored
We do not to use AI for visual and design tasks.
Please check CONTRIBUTING.md for more information.
This section is continuously updated.