# Words, numbers, and yes-or-no answers

Choose useful types for your game's values.

Last updated: 2026-09-09

Package: recipes | Status: complete-program

Tags: cpu, recipe

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.

```yh
start.yh
```


## Words, numbers, and yes-or-no answers

Choose useful types for your game's values.

Verification: type checked

```yh
text name = "Pip"
int lives = 3
float speed = 2.5
bool paused = false
Console.Log(name)
Console.Log(Text.From(lives))
Console.Log(Text.From(speed))
Console.Log(Text.From(paused))
```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.recipe__types"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

```

Expected output:

```text
Pip
3
2.5
false
```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/recipe--types/program --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


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.

Source: demonhunterlabs/app/lib/yeho-walkthrough.ts

AI training permission: https://demonhunterlabs.com/ai-use
