Metadata-Version: 2.5
Name: type-survivors-cli
Version: 0.1.1
Summary: Type Survivors: a typing-survivors terminal game (Textual).
Author: Shreyas S Joshi
License: MIT
License-File: LICENSE
Keywords: game,survivors,terminal,textual,typing
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: End Users/Desktop
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Games/Entertainment
Classifier: Topic :: Utilities
Requires-Python: >=3.13
Requires-Dist: par-textual-image>=0.1.0
Requires-Dist: pillow>=11.0
Requires-Dist: platformdirs>=4.0
Requires-Dist: pydantic>=2.14.1
Requires-Dist: pygame-ce>=2.5.8
Requires-Dist: rich-pixels>=3.0.1
Requires-Dist: terminaltexteffects>=0.15.0
Requires-Dist: textual==8.2.8
Description-Content-Type: text/markdown

<img src="docs/screenshots/title.png" alt="TYPE SURVIVORS — in-game logo, blood-neon on void black" width="100%" />

<div align="center">

[![typing](https://readme-typing-svg.demolab.com?font=Fira+Code&weight=600&size=21&duration=2800&pause=900&color=FFD23F&center=true&vCenter=true&width=640&lines=type+fast+or+be+eaten+by+the+void;every+keystroke+is+a+sword+swing;the+crypt+remembers+your+weak+keys)](https://github.com/BlackPool25/type-survivors-cli)

[![PyPI version](https://img.shields.io/pypi/v/type-survivors-cli?style=for-the-badge&logo=pypi&logoColor=white&labelColor=0B0B12&color=7B2CFB)](https://pypi.org/project/type-survivors-cli/)
[![PyPI downloads](https://img.shields.io/pypi/dm/type-survivors-cli?style=for-the-badge&logo=pypi&logoColor=white&labelColor=0B0B12&color=FF2A2A)](https://pypi.org/project/type-survivors-cli/)
[![Python](https://img.shields.io/pypi/pyversions/type-survivors-cli?style=for-the-badge&logo=python&logoColor=FFD23F&labelColor=0B0B12&color=24AEEB)](https://pypi.org/project/type-survivors-cli/)
[![License](https://img.shields.io/github/license/BlackPool25/type-survivors-cli?style=for-the-badge&labelColor=0B0B12&color=7B2CFB)](LICENSE)
[![Platform](https://img.shields.io/badge/platform-windows%20%7C%20macos%20%7C%20linux-0B0B12?style=for-the-badge&logo=gnometerminal&logoColor=FFD23F)](https://github.com/BlackPool25/type-survivors-cli)

*A typing-survivors arcade descent for your terminal — kill words before they reach you, survive the waves, fell a boss every 5th depth. The crypt watches how you type, and adapts.*

</div>

<p align="center">╰~-~-~-~-~── ※ ⛧ ──~-~-~-~-~╯</p>

## ⛧ &nbsp; Behold the crypt

<table>
<tr>
<td align="center"><b>༺~*~ ᛟ GATE OF SOULS ᛟ ~*~༻</b><br/>the hub — wallet, rank, grimoire of trials</td>
<td align="center"><b>༺~*~ ⚔ THE SUNKEN CRYPT ⚔ ~*~༻</b><br/>the run — words close in, steel answers</td>
<td align="center"><b>༺~*~ ✦ VOID MARKET ✦ ~*~༻</b><br/>the shop — spend run gold, stack ranks</td>
<td align="center"><b>༺~*~ ✦ THE FALLEN ✦ ~*~༻</b><br/>the recap — scars, charts, weak keys</td>
</tr>
<tr>
<td><kbd><img src="docs/screenshots/hub.png" alt="hub menu" width="100%" /></kbd></td>
<td><kbd><img src="docs/screenshots/arena.png" alt="arena combat" width="100%" /></kbd></td>
<td><kbd><img src="docs/screenshots/shop.png" alt="void market shop" width="100%" /></kbd></td>
<td><kbd><img src="docs/screenshots/recap.png" alt="run recap" width="100%" /></kbd></td>
</tr>
</table>

```diff
- the void does not forgive slow fingers. it only forgives practiced ones.
```

## ✦ &nbsp; Install grimoire

> Requires **Python ≥ 3.13**. Check with `python --version` (Windows: `py --version`).

### Windows (PowerShell)

```powershell
pipx install type-survivors-cli
# if pipx is missing:  py -m pip install --user pipx; py -m pipx ensurepath
type-survivors
```

Best viewed in **Windows Terminal** (true-pixel sprites via sixel), Ghostty, Kitty, or WezTerm. Plain `conhost.exe` still plays — it falls back to arcane half-block glyphs.

### macOS

```bash
brew install pipx && pipx ensurepath   # once, if pipx is missing
pipx install type-survivors-cli
type-survivors
```

Best viewed in **Ghostty**, Kitty, WezTerm, or iTerm2.

### Linux

```bash
pipx install type-survivors-cli
type-survivors
```

Best viewed in **Ghostty**, Kitty, WezTerm, or any sixel-capable terminal.

### Alternatives (any OS)

| Method | Command |
|---|---|
| Throwaway run, no install | `uvx type-survivors-cli` |
| Isolated tool install | `uv tool install type-survivors-cli` |
| Plain pip (needs a venv or `--user`) | `pip install type-survivors-cli` then `type-survivors` |

Update with `pipx upgrade type-survivors-cli` (or `uv tool upgrade type-survivors-cli`).
Leave the crypt with `pipx uninstall type-survivors-cli`.

## ⚔ &nbsp; The rites (controls)

| Key | Rite |
|---|---|
| <kbd>A</kbd>–<kbd>Z</kbd> | Strike the nearest word sharing your letter |
| <kbd>1</kbd> <kbd>2</kbd> <kbd>3</kbd> | Quaff a held cache (blood-vial · frost-veil · second-wind) |
| <kbd>P</kbd> | Suspend the run (checkpoint sealed) · <kbd>Q</kbd> to abandon it |
| <kbd>S</kbd> / <kbd>R</kbd> | Begin a run / resume the suspended one |
| <kbd>H</kbd> | Enter the Void Market |
| <kbd>Esc</kbd> | Break target lock |

## ✦ &nbsp; What the dark offers

- 🧠 **An engine that learns your hands** — a Glicko-style rating tracks your pace across runs; the word-dealer serves words at your edge, trains your weakest keys when pressure is low, and spares them when the swarm closes in. Every run opens gentle, then adapts within two kills.
- 🌊 **An AI director, not a metronome** — a linear wave baseline eases from gentle to a 1.6s floor while your rating may bend it only ±20%; Build / Peak / Relax strain phases breathe the spawn pressure; wave 1 deals short grunt-only words on the slowest rail; HEX skirmishers debut at wave 4, ELITE bruisers at wave 6, bosses hold court every 5th wave.
- 🏅 **Visible rank** — climb Spark → Ember → Flame → Blaze → Inferno → Mythic, banked into your profile and shown on the hub.
- 🖼️ **True-pixel fiends** — cropped sprite boxes paint above the core, never burying your sanctuary; they render as real images on Kitty, Ghostty, WezTerm, iTerm2, VS Code, and Windows Terminal (sixel); everywhere else the same fiends fall back to half-block glyphs.
- 🛒 **Void Market** — one-time caches plus four capped rank lines (vitality, focus, deep-chill, greed) with escalating prices and full refunds.
- 🎵 **Chiptune dread** — ambient menu music and combat stingers (mute with `E` → sound off).

## 🏅 &nbsp; Ladder of embers

| Rank | Pact |
|---|---|
| Spark | the crypt has just noticed you |
| Ember | your fingers remember the shapes |
| Flame | words die before they whisper |
| Blaze | the swarm fears your keyboard |
| Inferno | bosses check *their* WPM around you |
| Mythic | the void types back — and loses |

## 📜 &nbsp; Further incantations

<details>
<summary><b>✦ Suspend, resume, and your soul-file</b></summary>

- `type-survivors --resume` returns to a suspended run.
- Progress (gold, ranks, rating, per-key mastery, history) lives in your platform's user-data dir and is written atomically with backups — the crypt never eats a save.
- Practice runs (`P`) never touch gold, history, or the checkpoint.

</details>

<details>
<summary><b>✦ Terminal & audio rites</b></summary>

- True-pixel sprites engage automatically where the terminal allows (Kitty graphics, sixel, iTerm2). No flags, no config.
- If glyphs look wrong, your font lacks box-drawing support — any Nerd Font or Cascadia Code fixes it.
- `NO_COLOR=1` forces the monochrome rite. `TSURV_TRUEPIXEL=0` pins glyph mode.
- No sound? Install a player (`aplay`/`paplay` on Linux; built-in on macOS/Windows) or mute from settings.

</details>

<details>
<summary><b>✦ From source, for sorcerers</b></summary>

```bash
git clone https://github.com/BlackPool25/type-survivors-cli.git
cd type-survivors-cli
uv sync
uv run pytest -n auto
uv run type-survivors
```

</details>

<p align="center">╰~-~-~-~-~── ※ ⛧ ──~-~-~-~-~╯</p>

<div align="center">

MIT © Shreyas S Joshi — the crypt is open source; your WPM is your own.

</div>
