This Repository contains the game Kniffel / Yahtzee.
The game can be played by two human players.
If all thirteen turns are over it will return to the main menu.
The code was written by:
- Joshua Miller
- Tobias Welti
- Luca Kaiser
- Danny Seidel
To start the game you need the files:
- main.py
- game.py
- formatting.py
- error_handler.py
Additionally, the Repository includes tests for the above listed files:
- test_main.py
- test_game.py
- test_player.py
- test_error_handler.py
To ensure readable code pylint was used.
The slightly adjusted config can be found in the .pylintrc file.
Furthermore, the project includes a pytest.ini file used by pytest.
- Python 3.10.2
- Pylint 2.13.5
- Pickle
- Hashlib
- Hmac
- Pytest
- Pytest-cov
In the project root folder run:
python src/main.py
pip install pytest
pip install pytest-cov
Run all tests with:
pytest
Run tests for one file:
pytest tests/"filename"
Run tests with coverage:
pytest --cov src
Run tests and save coverage to html files:
pytest --cov src --cov-report=html