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.0.tar.gz
(17.4 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.0.tar.gz.
File metadata
- Download URL: retro_games-2.1.0.tar.gz
- Upload date:
- Size: 17.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bfd545262b8ca210ee62bd9f1ec23d15ebfa544fc6086e77cd400554e4eaaa0d
|
|
| MD5 |
1e2b83c624ce61afb4ff45e95626941a
|
|
| BLAKE2b-256 |
b3ffd095a51171f137c6edcdf397ca829badbd32ff1f7ccec765c4e48edcfdf5
|
File details
Details for the file retro_games-2.1.0-py3-none-any.whl.
File metadata
- Download URL: retro_games-2.1.0-py3-none-any.whl
- Upload date:
- Size: 26.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26617bc6f3aab4ad35c16db8d8514ebe8d92ac45b6e08bb1cf11b8e488272e98
|
|
| MD5 |
f33fb5c0f069a292a4c2415e94979fa4
|
|
| BLAKE2b-256 |
e1f0803a97a9ce3732e673f6ed3f3a04aef8b275ea4ca13b8bb79ee18508e639
|