A simple framework for Terminal-based games
Project description
Retro
A simple framework for Terminal-based games.
╔════════════════════════════════╗
║ ║
║ ║
║ ║
║ ************* ║
║ * ║
║ * ║
║ **> ║
║ @ ║
║ ║
║ ║
╠════════════════════════════════╣
║score: 153 ║
║ ║
╚════════════════════════════════╝
Layout
- There are two panes, a fixed-size play area at the top and a state window at the bottom. When enabled, a sidebar containing debug messages is also shown.
Concepts and skills needed
-
We need to discuss immutability, and the difference between mutable objects and immutable values.
- Specifically, we care about the difference between tuples and lists.
- State must be immutable!
- Objects are only ever equal to themselves.
-
The game is structured as a collection of agents which interact.
Design/pedagogical criteria
- Make thinking visible.
- Avoid subclasses; they require interaction with invisible parent attributes.
- Instead, compose functionality from other classes which might be somewhat black-boxed.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
retro_games-1.1.2.tar.gz
(14.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file retro_games-1.1.2.tar.gz.
File metadata
- Download URL: retro_games-1.1.2.tar.gz
- Upload date:
- Size: 14.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.13.5 Darwin/24.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a620ab075036751b74acd5d495f4b3804ba53d5fc526c4e497306220a9f4028
|
|
| MD5 |
a2301bb5f5ddb6b9dfb1e87d788baf9b
|
|
| BLAKE2b-256 |
1b0c3af8bca222859fe047599d3e903f99e7d55de5f0a625b59d23ec9905e2ed
|
File details
Details for the file retro_games-1.1.2-py3-none-any.whl.
File metadata
- Download URL: retro_games-1.1.2-py3-none-any.whl
- Upload date:
- Size: 20.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.13.5 Darwin/24.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e77c33d4a58fa18cf06cfdaceacb7d111a4bf705619880d46bfed2c0e0e05af
|
|
| MD5 |
95151af990b7f597c07cbb85fea6fab4
|
|
| BLAKE2b-256 |
57443c6bbc32babed3bc013d2dffc336772e0976c633c0dc00183c5baf6142c8
|