How calab/blackbox works
Black Box is a desktop deduction game: players fire rays into a grid, infer hidden sphere positions from the ray outcomes, and submit a guess. The main runtime is a single Python file, so the components below are logical responsibilities within that implementation rather than separate modules. The excerpts show scoring, save calls, sound triggers, and rendering behavior, but omit the ray-tracing implementation and persistence details; those internal links are therefore limited to documented behavior. [README, csd-blackbox.py]
Main entry points: csd-blackbox.py BlackBox window · resources Audio assets
Components 8
Gameplay
- Grid and ray rules
csd-blackbox.py - Guess and scoring
csd-blackbox.py
Interface
- BlackBox window
csd-blackbox.py - Input controls
csd-blackbox.py
Game support
- Settings and best times
csd-blackbox.py - Sound effects
csd-blackbox.py - Audio assets
resources
Other components
- Player
Connections 9
- Player → BlackBox window: plays
README.md - BlackBox window → Grid and ray rules: runs game
README.md - Player → Input controls: marks and fires
csd-blackbox.py - Input controls → Guess and scoring: updates guesses
csd-blackbox.py - Guess and scoring → Settings and best times: saves scores
csd-blackbox.py - Guess and scoring → Sound effects: plays effects
csd-blackbox.py - BlackBox window → Sound effects: uses effects
csd-blackbox.py - Sound effects → Audio assets: loads clips
- BlackBox window → Guess and scoring: renders status
csd-blackbox.py