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-2.1.1.tar.gz
(18.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-2.1.1.tar.gz.
File metadata
- Download URL: retro_games-2.1.1.tar.gz
- Upload date:
- Size: 18.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f94e751c4b17ea8851b8018bae7363bb287b17ebb34554770b837c79510e01aa
|
|
| MD5 |
7a1e73e20b6b1fdf740bb65858777bc8
|
|
| BLAKE2b-256 |
9b7756b32035039254e4757d8d24b8e36a29826d55117de0102e776c8c7de218
|
File details
Details for the file retro_games-2.1.1-py3-none-any.whl.
File metadata
- Download URL: retro_games-2.1.1-py3-none-any.whl
- Upload date:
- Size: 28.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9261578e524cb8b1d0e4368040cf83107f25c6368f0f1c49e608a6e80ca6af19
|
|
| MD5 |
127e16412aeeeee50eec9e67d7522309
|
|
| BLAKE2b-256 |
67325c7e8c2a1276f94ea55e0de88117ce8fc3a1ee838d58a930c1f651d7fd9f
|