Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

![Road Decider demo](/images/examples/laptop-examples/road-decider/demo.png)

Two cars race side by side on identical roads that get faster over time. Each car has three lives, and hitting traffic costs one. Play **You vs d1** with the arrow keys, or watch **Jev vs d1** to compare two decision models head-to-head.

Check warning on line 13 in examples/laptop-examples/build-a-game-with-decision-models.mdx

View check run for this annotation

Mintlify / Mintlify Validation (liquidai) - vale-spellcheck

examples/laptop-examples/build-a-game-with-decision-models.mdx#L13

Did you really mean 'Jev'?

Decision models are purpose-built for classification, routing, and scoring. Instead of generating text token by token, they return a structured answer in a single call. That makes them fast enough to use inside a game loop, and cheap enough to call on every tick.

Expand Down Expand Up @@ -44,7 +44,7 @@
```

<Note>
Jev vs d1 mode is optional. To enable it, add an OpenRouter key as `OPENROUTER_API_KEY`.

Check warning on line 47 in examples/laptop-examples/build-a-game-with-decision-models.mdx

View check run for this annotation

Mintlify / Mintlify Validation (liquidai) - vale-spellcheck

examples/laptop-examples/build-a-game-with-decision-models.mdx#L47

Did you really mean 'Jev'?
</Note>

### 3. Install dependencies and start the demo
Expand All @@ -54,7 +54,7 @@
npm run dev
```

Open [http://localhost:5173](http://localhost:5173) and start a race. If a key is missing, the start screen tells you which one and disables the modes that need it.
Open `localhost` and start a race. If a key is missing, the start screen tells you which one and disables the modes that need it.

## What's inside?

Expand Down
Loading