How notffej/machine-problem works
The Verdict is a detective mystery game. In the graphical version, the player starts a case, examines crime-scene clues, interviews suspects, unlocks laboratory analysis, reviews findings in a notebook, and makes an accusation that determines the ending. The runtime is centered on a frame loop and screen dispatcher, with case content and reusable drawing helpers separated into their own modules. A separate text-based game and an upgraded text variant are also present. Evidence is limited to the README and sampled excerpts; unsampled implementation details are not assumed.
Main entry points: game.c Screen Dispatcher · main.c Window Loop · game.h Game State Model · ui.c Drawing Helpers
Components 15
Game Runtime
- Window Loop
The Verdicts/src/main.c - Screen Dispatcher
The Verdicts/src/game.c - Game State Model
The Verdicts/include/game.h
Investigation
- Crime Scene
The Verdicts/src/game.c - Suspect Interviews
The Verdicts/src/game.c - Laboratory Analysis
The Verdicts/src/game.c - Detective Notebook
The Verdicts/src/game.c - Accusation Ending
The Verdicts/src/game.c
Case Content
- Case Story Data
The Verdicts/src/case_data.c - Text Game
The Verdict Game Code- Calix.c - Story Variant
Upgraded The Verdict Game (w Story).c
Presentation
- Drawing Helpers
The Verdicts/src/ui.c - UI Helper Declarations
The Verdicts/include/ui.h - Raylib API
The Verdicts/include/raylib.h
Other components
- Player
Connections 14
- Player → Window Loop: starts game
The Verdicts/src/main.c - Window Loop → Screen Dispatcher: runs each frame
The Verdicts/src/main.c - Window Loop → Game State Model: initializes state
The Verdicts/src/main.c - Screen Dispatcher → Crime Scene: dispatches screen
The Verdicts/src/game.c - Screen Dispatcher → Suspect Interviews: dispatches screen
The Verdicts/src/game.c - Screen Dispatcher → Laboratory Analysis: dispatches screen
The Verdicts/src/game.c - Screen Dispatcher → Detective Notebook: dispatches screen
The Verdicts/src/game.c - Screen Dispatcher → Accusation Ending: dispatches screen
The Verdicts/src/game.c - Screen Dispatcher → Game State Model: reads and updates
The Verdicts/src/game.c - Screen Dispatcher → Drawing Helpers: uses drawing helpers
The Verdicts/src/game.c - Drawing Helpers → Raylib API: draws with
The Verdicts/src/ui.c - Case Story Data → Game State Model: fills case state
The Verdicts/src/case_data.c - Text Game → Player: offers text play
- Story Variant → Player: offers story play