{"id":"recipe--types","name":"Words, numbers, and yes-or-no answers","owner":"yeho","package":"recipes","kind":"recipe","signature":"start.yh","description":"Choose useful types for your game's values.","context":"A type tells Yeho what kind of value belongs in a name. Think about the thing you are describing: a character name is text, a life count is a whole number, movement speed may need a fraction, and a pause switch is yes or no. You can build a lot with text, int, float, and bool. There are more precise number types in the reference, but you do not need to memorize them to make your first game.","parameters":[],"returns":"","members":[],"tags":["cpu","recipe"],"updated":"2026-09-09","source":{"repository":"demonhunterlabs","path":"app/lib/yeho-walkthrough.ts"},"status":"complete-program","notes":["Give Pip four lives, a speed of 3.5, and a paused value of true. Run after each edit so you can see each change separately."],"examples":[{"id":"program","title":"Words, numbers, and yes-or-no answers","description":"Choose useful types for your game's values.","code":"text name = \"Pip\"\nint lives = 3\nfloat speed = 2.5\nbool paused = false\nConsole.Log(name)\nConsole.Log(Text.From(lives))\nConsole.Log(Text.From(speed))\nConsole.Log(Text.From(paused))","manifest":"manifestVersion = \"2\"\npackage = \"api.example.recipe__types\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n","tags":["cpu"],"run":"cpu-oracle","expected":"Pip\n3\n2.5\nfalse","verification":"type checked","sha256":"899d12cfaf3736a8ef7bed71469c27f1b8da1025296279c3979cda2d6532e938","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=recipe--types","json":"https://demonhunterlabs.com/reference/items/recipe--types.json","markdown":"https://demonhunterlabs.com/reference/text/recipe--types.md"}
