implemented Scoundrel game

This commit is contained in:
Luxferre
2026-01-02 12:36:36 +02:00
parent 7ae7beeb9b
commit f66d94b8b0
4 changed files with 198 additions and 4 deletions
+15 -1
View File
@@ -4,7 +4,7 @@
T-DeckARD is a curated, interconnected and integrated collection of Python 3 modules developed for CircuitPython 10.x on LilyGO T-Deck (but also mostly compatible with MicroPython and desktop CPython) aimed at turning the stock (Circuit)Python REPL into an easy to use operating environment.
T-DeckARD modules are divided into two categories: **components**, which are the building blocks anyone can use to easily create their own applications, and ready-made **applets** which can already be used as stand-alone applications, as well as included as components of other, more complicated ones.
T-DeckARD modules are divided into two categories: **components**, which are the building blocks anyone can use to easily create their own applications, and ready-made **applets** which can already be used as stand-alone applications, as well as included as components of other, more complicated ones. This repo also hosts the **games** section which is just a special kind of applets that implement various computer games.
## Prerequisites for T-Deck (Plus)
@@ -339,6 +339,20 @@ Exports the following functions:
- `bloged()`: same as `blogpost()` but with a full-featured `app.ed` interface
- `blogpost_str(content)`: post the content in a non-interactive manner
## Games (`game.*`)
As of now, T-DeckARD implements the following games.
### Scoundrel (`game.scoundrel`)
A port of the rogue-like card game Scoundrel to CircuitPython. Uses `M` to denote monsters, `W` to denote weapons, `P` to denote potions and `D` to denote weapon durability.
Implements the [official ruleset](http://www.stfj.net/art/2011/Scoundrel.pdf) of the game with no modifications.
Run: `scoundrel()` from the REPL itself, or use `from game.scoundrel import scoundrel` in other code.
Controls: enter `a`, `b`, `c` or `d` to interact with an item above this letter in the room, or `r` to run from the room in case it's possible. To quit the game before winning or losing, enter the `q` command at any time.
## FAQ
### Is this an OS shell?