recipes · recipe ·

Combine little questions

Use and, or, and ! to express player rules.

cpurecipe

Sometimes one question is not enough. A door might need a key and a living player. A pause screen might open when a menu is visible or the player asks to pause. and requires both sides to be true. or needs at least one. ! flips a yes-or-no value. Read !paused as not paused.

start.yh

Status: complete-program

Combine little questions

Use and, or, and ! to express player rules.

cpu · type checked

bool hasKey = true
bool alive = true
bool paused = false
bool canOpen = hasKey and alive and !paused
if canOpen { Console.Log("Come on in.") }
else { Console.Log("The door stays closed.") }
project.mech
manifestVersion = "2"
package = "api.example.recipe__logic"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"
Expected output
Come on in.
Notes and source

Flip hasKey, alive, and paused one at a time. Predict whether the door opens before each run.

demonhunterlabs/app/lib/yeho-walkthrough.ts