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.4.1.tar.gz
(21.7 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.4.1.tar.gz.
File metadata
- Download URL: retro_games-2.4.1.tar.gz
- Upload date:
- Size: 21.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.4 {"installer":{"name":"uv","version":"0.11.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b072680567a4fb010c7bf2d61d4602e431e45bdafb6d9b8d1fcf52a3399d7bf
|
|
| MD5 |
dfddaa6f1a1e64d2f9963ca1e755c77b
|
|
| BLAKE2b-256 |
dd2324cc826a188d00a033b4a0a7257719d8d5eb000e2420fb77832bbfdd1bf7
|
File details
Details for the file retro_games-2.4.1-py3-none-any.whl.
File metadata
- Download URL: retro_games-2.4.1-py3-none-any.whl
- Upload date:
- Size: 34.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.4 {"installer":{"name":"uv","version":"0.11.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d06fdad94e056115733e8f963b50dc677daeaa40e8204819dcc0cd626a5172d
|
|
| MD5 |
aea729fbfeea6fa3c3eae8c87d998be8
|
|
| BLAKE2b-256 |
2b5b6c3dcc3a8f4e4b0f63a4f9516cb0b6e96e9ee32b04f2912b17d36ca19ed5
|