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.3.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.3.tar.gz.
File metadata
- Download URL: retro_games-1.1.3.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 |
4f91ff725e551820aa4e30c12c0264e2da41967ed34252122b7136bc2a8ed311
|
|
| MD5 |
a2aea37bb64da3a10031cdd469e1c188
|
|
| BLAKE2b-256 |
b32e7f587ccf6ae5f109d786bac2a42fbacb9dfe65396175f5467cb24d8a9318
|
File details
Details for the file retro_games-1.1.3-py3-none-any.whl.
File metadata
- Download URL: retro_games-1.1.3-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 |
4bdd27241b5cb3ee72e69a042d301ff58df2a2ade7e3c29400a538fa54e30148
|
|
| MD5 |
48e64e647883224e921274c296993e5f
|
|
| BLAKE2b-256 |
6df1e84278104a29bf875f0f1a9d20608dded5d043fc8f8ca2fd9acd9f421392
|