https://github.com/objarni/four-in-a-row-pygame
An experiment with TEA in Python/PyGame
https://github.com/objarni/four-in-a-row-pygame
Last synced: 12 months ago
JSON representation
An experiment with TEA in Python/PyGame
- Host: GitHub
- URL: https://github.com/objarni/four-in-a-row-pygame
- Owner: objarni
- License: mit
- Created: 2020-10-01T19:41:53.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-07T15:31:36.000Z (over 5 years ago)
- Last Synced: 2025-02-06T11:55:21.897Z (over 1 year ago)
- Language: Python
- Size: 3.23 MB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license.txt
Awesome Lists containing this project
README
# four-in-a-row-pygame
An experiment with The Elm Architecture and Approvals in Python/PyGame originally by Olof (@objarni) later refactored and extended by Emily (@emilybache).
What is this?
-------------
Olof wanted to try out The Elm Architecture (TEA) in Python, and chose to use PyGame as it contains all needed to make a small game.
The choice of 4-in-a-row is arbitrary, but big enough to contain animation, some logic and interaction with the user
as well as scene switches (start and game over scenes).
To make the code maintainable and easily refactorable, Olof choose to use Approval Tests for all test automation.
Emily advised on some design choices, and refactored the tests a little to enhance readability.
Running
-------
Install `requirements.txt`.
The game is started by running `main.py`.
Use pytest to run the tests.
python -m pytest