Asciicade
Asciicade is a polished, extensible arcade game collection for Linux terminals.
Features
- Unified terminal interface built with Textual.
- Persistent player profiles stored in SQLite.
- Player profiles with eight selectable terminal colors.
- Snake single-player mode.
- Snake competitive local two-player mode on one keyboard.
- Pong single-player mode against a computer opponent.
- Pong competitive local two-player mode on one keyboard.
- Blockfall single-player mode with guideline scoring, levels, wall kicks and a ghost piece.
- Blockfall competitive local two-player mode on separate boards.
- Per-game options (for example Snake difficulty and wrap-around walls, Pong score limit and difficulty, or Blockfall start level, next preview and ghost piece).
- Persistent high scores and match history.
- Short in-application instructions.
- Optional arcade sound effects for Snake food collection, Pong paddle hits and points, Blockfall single and multi-line clears, and game over. Menu navigation, confirmation and option toggles use separate UI sounds. Playback uses a system audio player and is skipped silently when none is available.
- Consistent keyboard controls with normalized player input.
- PyPI-compatible package with the
asciicadecommand.
Terminal preview
Main menu:
+--------------------------------------------------+
| ASCIICADE |
| A modular terminal arcade |
| |
| +------------------------------+ |
| | > Single Player | |
| | Two Players | |
| | High Scores | |
| | Match History | |
| | Instructions | |
| | Quit | |
| +------------------------------+ |
+--------------------------------------------------+
Installation
From PyPI
pip install asciicade
asciicade
pipx and uv work as well:
pipx install asciicade
# or
uv tool install asciicade
From source
Requirements: Python 3.11 or newer and uv.
git clone https://github.com/pamagister/asciicade.git
cd asciicade
uv sync --all-groups
uv run asciicade
Supported Python versions are 3.11 and newer. CI tests 3.11 and 3.14 on Linux.
Sound effects are optional and use a system audio player. Install one of the
supported players, for example ffmpeg (for ffplay) or pulseaudio-utils
(for paplay). Set ASCIICADE_SOUND=off to disable playback.
Quick start
asciicade [--data-dir PATH] [--version]
--data-dir PATHoverrides the directory used for persistent game data.--versionprints the installed version.
Choose Single Player or Two Players, select a player, then choose a game. Use the arrow keys, Enter or Space to navigate and confirm; Left or Escape goes back. See Controls below for the full keyboard reference, including player profiles and saved data.
Controls
Asciicade uses one consistent keyboard mapping for menus, dialogs and gameplay. The same keys work for both players; movement keys differ per player.
Menus and dialogs
| Action | Key(s) |
|---|---|
| Move up / down | Arrow Up / Arrow Down, W / S |
| Confirm / select | Enter, Space, Right or D |
| Back / previous | Escape, Left or A |
| Move between dialog buttons | Arrow Up / Down / Left / Right, W / S / A / D |
| Cycle a game option | Space or Enter |
| Change a game option value | Left / Right or A / D |
| Edit the highlighted player profile | E |
| Undo the last player selection | Backspace |
| Scroll the instructions screen | Arrow Up / Down, W / S, PageUp / PageDown or Space |
| Quit the application | Q, then confirm |
| Exit from the main menu | Three quick Escape presses within 1.5 s |
W/A/S/D mirror the arrow keys everywhere. In two-player games they belong to Player 2, so Player 1 uses the arrow keys and Player 2 uses W/A/S/D.
Gameplay
| Action | Player 1 | Player 2 | Single player |
|---|---|---|---|
| Move | Arrow keys | W / A / S / D | Arrow keys or W / A / S / D |
| Action A (primary) | Space | Left Shift | Space |
| Action B (secondary) | AltGr (Right Alt / ISO Level 3 Shift) | Left Ctrl | AltGr |
| Pause / resume | Escape or P | Escape or P | Escape or P |
| Leave game while paused | Enter | Enter | Enter |
| Quit the application | Q, then confirm | Q, then confirm | Q, then confirm |
Action A and Action B are game-defined. For example, they can be used to rotate a block left or right in a block-dropping game, or to jump and crouch in a jump and run. Snake and Pong currently use movement only; Action A/B are the standard for games that use action buttons.
Blockfall uses Action A and Action B for rotation. Player 1 rotates clockwise with Space (Action A) and counterclockwise with AltGr (Action B). Player 2 rotates clockwise with Ctrl (Action B) and counterclockwise with Shift (Action A). In single-player mode, Space or Shift rotates clockwise and AltGr or Ctrl rotates counterclockwise. As a portable alternative, the Up arrow (Player 1) and W (Player 2) also rotate the active piece; in Blockfall they do not move the piece vertically.
Standalone AltGr, Shift and Ctrl key presses are only reported reliably by terminals with Kitty keyboard protocol support. On other terminals, use Space or Up (Player 1) and W (Player 2) as portable rotation keys.
Player profiles, colors and saved data
- Player profiles are persistent and can be created from the player-selection screen.
- A guest option is available for quick sessions without creating a profile.
- Guest player 1 uses green and guest player 2 uses cyan.
- Profiles can be edited with
Eon a highlighted profile or through theEdit playermenu entry. The edit dialog changes the name and color. - The color palette contains the eight normal terminal colors.
- A profile cannot occupy both player slots in a two-player match.
- Single-player scores appear in the leaderboard.
- Multiplayer results appear in the match history with both participants, scores and the winner or draw.
- Guest results are stored without a permanent profile.
Application data is stored in the XDG data directory, normally:
~/.local/share/asciicade/asciicade.db
Set XDG_DATA_HOME to change the base directory.
Games
- Blockfall — Classic falling-block puzzle for one or two local players. Arrange tetrominoes into complete horizontal lines, clear them before the stack reaches the top and survive as the pieces fall faster.
- Pong — Classic arcade Pong for one or two local players. Return the ball with your paddle, use the paddle edges to aim, and be first to reach the score limit.
- Snake — Classic arcade Snake for one or two local players. Eat food, grow longer and avoid crashing into walls or your own body.
Documentation
- Architecture — code layout and extension points.
- Development — setup, tests, documentation and releases.
- Funding — ways to support the project.
License
Asciicade is released under the Unlicense (public domain). See LICENSE.
Metadata
Release files for asciicade 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| asciicade-0.2.3.tar.gz | 199.9 kB | With provenance | Details for asciicade-0.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| asciicade-0.2.3-py3-none-any.whl | Python 3 | none | any | Details for asciicade-0.2.3-py3-none-any.whl |
Total release size: 395.1 kB
Release files / asciicade-0.2.3.tar.gz
| Download URL | asciicade-0.2.3.tar.gz |
|---|---|
| Size | 199.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c1a34dc5dc8377b4dfa49fbf49f4d079eeb97548c6880fd5250b7528848b6a63
|
|
BLAKE2b-256 checksum How to use checksums |
0c17c469970ebcec4956e7367e3f16e1bc8ddf2154379820ca8fd85cce1b293d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.
Transparency logRelease files / asciicade-0.2.3-py3-none-any.whl
| Download URL | asciicade-0.2.3-py3-none-any.whl |
|---|---|
| Size | 195.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
90d1cb55f04def2b2445651e26955cf85017f61b3f14c7bebd92a317607d28a8
|
|
BLAKE2b-256 checksum How to use checksums |
a80c187fd7e6b117ec3ade9fba01fbc71ca800c7c212670c441323296dc4ac5b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.
Transparency logSecurity for asciicade 0.2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for asciicade-0.2.3.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.