Skip to main content

# Terminal Fog-of-War Dungeon Explorer

A fast-paced, zero-dependency terminal dungeon crawler and split-screen 2-player race built entirely with Python's standard library. Cross-platform compatible with Windows, macOS, and Linux.

## Features

1-Player Solo & 2-Player Split-Screen Race Race head-to-head on the exact same procedural map in real time (no Enter key required while moving).

Minesweeper-Style Trap Radar Uncovered safe floors display 0–4, indicating how many traps are orthogonally adjacent.

On-Demand Power-Ups & Special Tiles Collect and trigger Shields (S), 3x3 Radars (R), 2x Money Multipliers (M), 2-Player Sabotage (B), linked Teleporters (O), Compass Shrines (C), and Mystery Crates (``).

Anti-Clumping Map Generator Spreads traps, gold, and special items evenly so spawns are never boxed in.

Persistent High Scores & Daily Seeds Saves separate records per player name, board size, and difficulty in highscore.json, plus persistent --daily seed mode.

## Project Structure

explore.py — Main CLI entry point.

cli\_args.py — Command-line argument parsing and persistent --daily configuration.

game.py — Multithreaded real-time game loop and terminal cursor lifecycle.

dashboard.py — Instructions screen, flicker-free ANSI HUD renderer, scoreboard, and map reveal.

engine.py — Core movement rules, trap resolution, and power-up logic.

board.py — Procedural grid generation, anti-clumping placement, and teleporter linking.

io\_utils.py — Cross-platform single-key reader (msvcrt termios), ANSI colors, and JSON storage.

## Controls

Action 1-Player Solo Player 1 (2P Left) Player 2 (2P Right)

--- --- --- ---

Move W A S D or Arrow Keys W A S D Arrow Keys

Use Radar (R) 1 or , 1 , (Comma)

Use 2x Money (M) 2 or . 2 . (Period)

Use Sabotage (B) 2P Only 3 `` (Slash)

Quit Match Q or Ctrl+C Q or Ctrl+C Q or Ctrl+C

(Note Shields S trigger automatically when you step on a Trap T.)

## Tile Legend

@ Highlighted Tile Your current position (--hard hides the number beneath you).

# Unexplored fog.

0–4 Safe floor showing adjacent trap count.

$ Treasure (+$10).

T Trap (-$10 in Normal mode, resets to $0 in --hard mode).

E Exit (reach this to finish).

S R M B Shield, Radar, 2x Multiplier, and Sabotage power-ups.

O Linked Teleporter pad.

C Compass Shrine (points toward the Exit).

`` Mystery Crate (+$30, `+1 Shield`, `+1 Radar`, or a Mimic trap).

## CLI Arguments & Examples

\# Default 2-player race (10x10 Normal)

python explore.py



\# 1-player solo run with post-game map reveal

python explore.py --one-player --reveal



\# Hard mode (15x15 grid, blind cursor, $0 trap penalty) with 60s sudden death

python explore.py --hard --sudden-death 60



\# Custom grid size, custom player names, and custom densities

python explore.py --size 12 --name1 Alex --name2 Sam --traps 35 --gold 40



\# Enable persistent daily seed mode (stays on until --no-daily is passed)

python explore.py --one-player --daily

python explore.py --no-daily



\# View or reset saved high scores (optionally in a custom folder)

python explore.py --scores --save-json .my\_saves

python explore.py --reset-scores --save-json .my\_saves

Metadata

Release files for fog-dungeon 3.5.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fog-dungeon 3.5.9
File Size Uploaded Provenance Actions
fog_dungeon-3.5.9.tar.gz 19.1 kB Without provenance Details for fog_dungeon-3.5.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fog-dungeon 3.5.9
File Interpreter ABI Platform Actions
fog_dungeon-3.5.9-py3-none-any.whl Python 3 none any Details for fog_dungeon-3.5.9-py3-none-any.whl

Total release size: 36.4 kB

Release files / fog_dungeon-3.5.9.tar.gz

Download URL fog_dungeon-3.5.9.tar.gz
Size 19.1 kB
Tags Source
SHA-256 checksum
How to use checksums
8ec8a7305ae90b62257f91f9cc5b28d777ae2719121cbc2da1cd4cd284fcc3ee
BLAKE2b-256 checksum
How to use checksums
13a1983481bfbe7c90afb88778ff6f35e99cd47f3ef890f2a3682e1dda8e0cc8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Release files / fog_dungeon-3.5.9-py3-none-any.whl

Download URL fog_dungeon-3.5.9-py3-none-any.whl
Size 17.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
755d2097ec91131927da5d882d6048343ee4f564e17872669fa31ecdd8bf0f82
BLAKE2b-256 checksum
How to use checksums
a0f0c9620bf743923e8f5a95ce20f2d983362455936c534687e2128911ee203c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Security for fog-dungeon 3.5.9

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Release history Release notifications | RSS feed

This release

3.5.9 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page