Metadata-Version: 2.4
Name: fog-dungeon
Version: 3.5.9
Summary: A cross-platform terminal Fog-of-War dungeon crawler and 2-player split-screen race.
Author: Parthiv Maheshwari
License: MIT
Keywords: terminal,game,cli,dungeon,fog-of-war,roguelike
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Classifier: Environment :: Console
Classifier: Topic :: Games/Entertainment
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

\# 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

&#x20;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).

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

&#x20;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 (``).

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

&#x20;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

&#x20;`explore.py` — Main CLI entry point.

&#x20;`cli\_args.py` — Command-line argument parsing and persistent `--daily` configuration.

&#x20;`game.py` — Multithreaded real-time game loop and terminal cursor lifecycle.

&#x20;`dashboard.py` — Instructions screen, flicker-free ANSI HUD renderer, scoreboard, and map reveal.

&#x20;`engine.py` — Core movement rules, trap resolution, and power-up logic.

&#x20;`board.py` — Procedural grid generation, anti-clumping placement, and teleporter linking.

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



\## Controls



&#x20;Action  1-Player Solo  Player 1 (2P Left)  Player 2 (2P Right) 

&#x20;---  ---  ---  --- 

&#x20;Move  `W A S D` or `Arrow Keys`  `W A S D`  `Arrow Keys` 

&#x20;Use Radar (`R`)  `1` or `,`  `1`  `,` (Comma) 

&#x20;Use 2x Money (`M`)  `2` or `.`  `2`  `.` (Period) 

&#x20;Use Sabotage (`B`)  2P Only  `3`  `` (Slash) 

&#x20;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

&#x20;`@`  Highlighted Tile Your current position (`--hard` hides the number beneath you).

&#x20;`#` Unexplored fog.

&#x20;`0–4` Safe floor showing adjacent trap count.

&#x20;`$` Treasure (`+$10`).

&#x20;`T` Trap (`-$10` in Normal mode, resets to `$0` in `--hard` mode).

&#x20;`E` Exit (reach this to finish).

&#x20;`S`  `R`  `M`  `B` Shield, Radar, 2x Multiplier, and Sabotage power-ups.

&#x20;`O` Linked Teleporter pad.

&#x20;`C` Compass Shrine (points toward the Exit).

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



\## CLI Arguments \& Examples

```bash

\# 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

```



