Skip to main content
Settings
Search
Appearance
Theme Mode
About
Jekyll v3.10.0
Environment Production
Last Build
2026-06-18 05:38 UTC
Current Environment Production
Build Time Jun 18, 05:38
Jekyll v3.10.0
Build env (JEKYLL_ENV) production
Page Location
Page Info
Layout quest
Collection quests
Path _quests/0000/bashcrawl/chamber.md
URL /quests/0000/chamber/
Date 2026-05-22
Theme Skin
SVG Backgrounds
Layer Opacity
0.6
0.04
0.08

Bashcrawl Chamber: Bash Arithmetic and the Statue Boss

Defeat Bashcrawl's Statue Boss by solving arithmetic with let, expr, and $(( )). Mastering Bash math is the only weapon that can defeat this stone guardian.

🌱 Lvl 0000Apprentice ⚔️ Side Quest 🟡 Medium 25-30 minutes

Bashcrawl Chamber: Bash Arithmetic and the Statue Boss

Defeat the stone statue by using let, expr, and arithmetic expansion to solve Bash math challenges and unlock the Rift.

Primary Tech
🛠️ bash
Skill Focus
Fullstack
Series
Bashcrawl Adventure Path
Author
IT-Journey Team
XP Range
⚡ 0-250

A massive stone statue dominates the Chamber, its eyes glowing with arithmetic runes. It will not yield to a sword. Only correct calculations can break the enchantment — and wrong answers deal damage.

🕹️ Play This Chamber

This page is your walkthrough and strategy guide — play right here in the browser, then follow the steps below.

🕹️ Bashcrawl — Web Terminal Open full screen ↗

The game loads in the Entrance. Use cd to make your way to the Chamber chamber, then follow the walkthrough below. Progress saves in your browser. Prefer a real shell? See Install & Play Locally.

🎯 Quest Objectives

  • Compute values using let, expr, and $(( ))
  • Assign arithmetic results to shell variables
  • Solve the statue’s puzzle correctly on the first attempt
  • Run ./statue to trigger and win the boss encounter
  • Collect the Chamber’s treasure and unlock the Rift path

�️ Quest Prerequisites

⚡ Command Cheatsheet

Syntax Example Result
let "var=expr" let "x=3*4" x=12
expr a op b expr 10 - 3 7 (printed)
$((expr)) echo $((2**8)) 256
$((var++)) echo $((n++)) value then increment

Arithmetic Operators

Operator Meaning
+ Addition
- Subtraction
* Multiplication
/ Integer division
% Modulo (remainder)
** Exponentiation

🗺️ Walkthrough

Step 1 — Enter the Chamber and read the runes

ls -F
# runes  statue*  chest
cat runes

The runes pose a riddle: “To defeat me, compute the Vault Code: multiply the number of doors in the Cellar by the number of exits in the Entrance, then add 7.”

The numbers vary per game session. Example: 4 doors × 1 exit + 7 = 11.

Step 2 — Practice arithmetic first

# Method 1: let
let "vault_code = 4 * 1 + 7"
echo $vault_code     # 11

# Method 2: expr (each token must be a separate arg)
expr 4 \* 1 + 7     # 11  (escape * to avoid glob expansion)

# Method 3: arithmetic expansion (preferred modern style)
vault_code=$(( 4 * 1 + 7 ))
echo $vault_code     # 11

Recommendation: Use $(( )) — it is cleaner, handles operator precedence correctly, and does not require expr to be installed.

Step 3 — Compute your specific answer

Replace the example numbers with the values from YOUR runes:

# Template:
answer=$(( doors_in_cellar * exits_in_entrance + 7 ))
echo "My answer is: $answer"

Step 4 — Face the statue

./statue
# The statue asks: "What is the Vault Code?"
# Enter your answer: 11
# CRACK! The statue crumbles. Victory!

Wrong answers reduce your HP. Make sure your math is right before running ./statue.

Step 5 — Loot the chest

cat chest
# Stone Key fragment obtained.
inventory

The stone key fragment is part of the multi-piece key that opens the Rift.

💡 Arithmetic Gotchas

Problem Cause Fix
expr 4 * 1 → error * glob-expanded Escape: expr 4 \* 1
let "x=5/2"2 Integer division Use bc for floats: echo "5/2" \| bc -l
Variable not set Missing $ Use echo $var, not echo var
Wrong answer, took damage Calculation error Recalculate carefully before ./statue

✅ Validation

  • You computed the vault code using all three methods (let, expr, $(( )))
  • You solved the statue puzzle without taking damage
  • The stone key fragment is in your inventory
  • The Rift path is now unlocked (visible in map)

➡️ Next Steps

The stone key fragment is needed for the Rift — but you still need pieces from the other branches first.

Continue exploring:


🖥️ Advanced: Install & Play Locally

The embedded terminal above is the fastest way to play — but the advanced version runs Bashcrawl in a real shell on your own machine, with the full Textual TUI, agent mode, and a genuine filesystem sandbox. The walkthrough on this page works identically in either mode.

Option A — Clone the game

git clone https://github.com/bamr87/bashcrawl.git
cd bashcrawl
./setup.sh        # one-time setup: dirs, permissions, help system
./main.sh         # launch the adventure (interactive menu)

Option B — It already ships with IT-Journey

Bashcrawl lives in this repository as the submodules/bashcrawl git submodule. If you cloned IT-Journey, pull it down and play in place:

git submodule update --init submodules/bashcrawl
cd submodules/bashcrawl
./setup.sh
./main.sh --interactive

Play modes

CommandModeBest for
./main.sh --interactiveTextual TUI (recommended)A rich local interface — needs Python 3 + textual
./main.sh --classicClassic bash emulatorSystems without Python
./main.sh --nativeNative terminalThe full real-filesystem experience
./main.sh --tutorialTutorial modeGuided, step-by-step learning
./main.sh --agentAgent modeAI automation and screenshots
./main.sh --helpHelpAll launcher options

Want to host the browser build yourself? From the game directory run make web-preview and open http://127.0.0.1:8000. The same static build is what powers the embedded terminal above (bamr87.github.io/bashcrawl).

📚 External Resources

Continue your terminal adventure with these resources:


Stone dust settles. The Chamber is yours. Arithmetic — the ultimate weapon. 🐉

🕸️ Knowledge Graph

Structured wiki-links connect this quest to the IT-Journey knowledge graph. Open the Obsidian Graph View to explore connections.

Level hub: [[Level 0000 - Foundation & Init World]] Overworld: [[🏰 Overworld - Master Quest Map]] Prerequisites: [[Bashcrawl Armoury: File Permissions and Script Execution]] Unlocks: [[Bashcrawl Rift: Pipes, Redirection, and the Final Boss]] Sequel quests: [[Bashcrawl Rift: Pipes, Redirection, and the Final Boss]] Obsidian docs: [[Obsidian Knowledge Graph and Wiki Links]]

🎁 Rewards

🕸️ Quest Network

graph TD loading(["Loading quest graph…"])