Getting Started¶
Install and start playing: clone and play, Binder or a macOS download, the web trainer, the help system, resetting the game and the playtest harness.
Prerequisites¶
- A terminal (bash or zsh on macOS/Linux, or WSL on Windows)
- Git (for cloning)
- No other dependencies for the bash game
- Python 3.10+ (optional — only for developer tooling and the playtest harness)
Installation¶
Option 1: Clone and Play (Recommended)¶
git clone https://github.com/bamr87/bashcrawl.git
cd bashcrawl
bash setup.sh # Sets permissions and validates environment
cd entrance
cat scroll # Begin your adventure!
Option 2: Play Online via Binder¶
No installation required — opens in your browser.
Option 3: Download ZIP (macOS)¶
macOS's Archive Utility may strip execute permissions. Use the terminal instead:
curl -L https://github.com/bamr87/bashcrawl/archive/main.zip -o bashcrawl.zip
unzip bashcrawl.zip
cd bashcrawl-main
bash setup.sh
cd entrance && cat scroll
Play Modes¶
Native Terminal (default)¶
Navigate the real filesystem. Directories are rooms, files are objects.
Web Trainer (browser)¶
The same rooms, scrolls and encounters in the browser, on an in-page bash emulator — hosted at https://bamr87.github.io/bashcrawl/, or locally:
make web-install # once: npm install (node 22.22+)
make web-dev # hot-reloading dev server at http://127.0.0.1:5173
make web-bundle # or build it: web/dist, then `bin/bashcrawl web` serves it
The engine's data bundles (web/data/*.json) are regenerated from the game content by make web-build, which the targets above run first.
Help System¶
Activate context-aware help from anywhere in the game:
# One-time activation (persists in current shell)
source src/help/init_help.sh
# Then use from any room
help # Context-aware tips for current location
help commands # Command quick reference
help map # Dungeon map
help reset # How to reset the game
Or run directly:
Resetting the Game¶
bash lib/reset.sh # Smart reset — re-hides rooms, clears state
bash lib/reset.sh --dry # Preview what would be reset
Playtest Harness (AI agents)¶
A lean MCP server lets AI agents play the game headlessly in a sandbox:
PYTHONPATH=src python3 -m playtest.mcp_server # start the MCP server
PYTHONPATH=src python3 -m playtest.scorer # score a recorded session
Next Steps¶
Read the Gameplay Guide for mechanics, or just cat scroll and follow the instructions. The game teaches you as you play.