Skip to main content

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


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.3.0.tar.gz (20.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

retro_games-2.3.0-py3-none-any.whl (33.6 kB view details)

Uploaded Python 3

File details

Details for the file retro_games-2.3.0.tar.gz.

File metadata

  • Download URL: retro_games-2.3.0.tar.gz
  • Upload date:
  • Size: 20.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

Hashes for retro_games-2.3.0.tar.gz
Algorithm Hash digest
SHA256 327b915496c6a291b21769cfb7d52ffb8213ebf0d6b7db21b76c92b1e6b9ab87
MD5 0b9b013898e7ef4c788c37eb248d5a3d
BLAKE2b-256 64686245fe754dae2de4cb5912ef4252dcbb7dee98d6db531e7fcf6d7fc04e19

See more details on using hashes here.

File details

Details for the file retro_games-2.3.0-py3-none-any.whl.

File metadata

  • Download URL: retro_games-2.3.0-py3-none-any.whl
  • Upload date:
  • Size: 33.6 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

Hashes for retro_games-2.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4e85d57c391cfbef3fb0c2e952922d4914ce7e417fe92110e0f7b1b80c441b6e
MD5 194da9d4f5ae67b0b1dd886793b26953
BLAKE2b-256 2448e64b4fdba352e9df7d3a7e31f58bbee4039c7364988dacd41282ba37368d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page