Chess NEA Project
- Python 100%
|
All checks were successful
Build executables / Run tests (push) Successful in 1m17s
Reviewed-on: #10 |
||
|---|---|---|
| .forgejo/workflows | ||
| assets | ||
| src | ||
| tests | ||
| .editorconfig | ||
| LICENSE | ||
| pytest.ini | ||
| README.md | ||
| requirements-dev.txt | ||
| requirements.txt | ||
Chess NEA Project
A chess game, written in Python with the pygame-ce library, for my A-Level OCR Computer Science NEA.
Requirements
- Python 3.10 or newer
- Git, or download a
.zipof the source code pygame-cepackage
Installation
Windows Powershell:
git clone https://git.tsbprodesk.co.uk/localuser/chessnea.git
cd chessnea
py -m venv venv
.\venv\Scripts\Activate.ps1
python -m pip install -r requirements.txt
python src\main.py
Linux/macOS:
git clone https://git.tsbprodesk.co.uk/localuser/chessnea.git
cd chessnea
python3 -m venv venv
source venv/bin/activate
python3 -m pip install -r requirements.txt
python3 src/main.py
Development
Follow the same steps as Installation, but ensure you use requirements-dev.txt instead of requirements.txt. Run unit tests with:
Linux/macOS:
cd chessnea
source venv/bin/activate
python3 -m pytest -n auto -q
Windows Powershell:
cd chessnea
.\venv\Scripts\Activate.ps1
python -m pytest -n auto -q