For our Code Jam project, we decided to make a retro style console, with 3 games, that could be opened.
- Games:
- Pong
- Snake
- MineSweeper
- Install all dependences
poetry install
- Make sure poetry is installed with
pip install poetry
- On windows, use
poetry install -E windows
- Make sure poetry is installed with
- Run
gameboy.py
with the commandpoetry run python gameboy.py
- Keybinds:
- Open Games
- 1 -> Snake
- 2 -> Pong
- 3-> MineSweeper
- Escape -> Exit
- Open Games
MineSweeper requires the nurses library, and is developed and tested with the nurses
code from this commit.
gameboy.py
requires a big screen (with at least 1080p) to render the images with curses
. Usually this means fullscreening the terminal window.
The nurses
library was not included in this repo, because the pre-commit hooks (specifically ISort) messed up the code in that library. After the deadline (but too late), we figured out that adding exclude: nurses
to .pre-commit-config.yaml will prevent the pre-commit hooks to change the library code.
Download the nurses
library, and place the nurses/nurses
directory (whose content are here) in the same directory as mine.py.
In case where the damage has already been done to nurses/
, simply replace the nurses/
folder with the original files.