Lesson 176 · 3 min

Make your own simple simulation

With one careful prompt, you can turn a chatbot into a small practice game with a goal, a score and feedback at the end.

You do not need code to build a simulation. A chatbot can run one if you give it the rules clearly, the way a game master runs a board game.

A good setup has five parts: the scene, the player's goal, what the AI controls, how progress is scored, and how it ends. For example: you are a new café manager, a supplier is late, the goal is to keep the café open for the morning rush, and you have three moves.

Ask the AI to show a short status after each move, like time left and customer mood, so you feel the pressure. At the end it should give a score and explain what a top player would have done.

Save the prompt so you can replay it, or share it with your team. If the game drifts, add a rule. If you want something you can click, ask for it as an artifact or small web page, and test it like any other app.

Do it now

Run a five-move challenge

  1. 1. Copy the prompt below and fill in a situation you would like to practise.
  2. 2. Play all five moves, then read the score and feedback.
  3. 3. Change one rule and play again to see how it feels.
Run a text practice game. Scene: [SITUATION]. My goal: [GOAL]. I get 5 moves. After each move, show a one-line status with [2 THINGS TO TRACK, e.g. time left and customer mood], then describe what happens in two sentences. Be realistic and do not let me win too easily. After move 5, give a score out of 10 and explain what the best moves would have been.

Quick check

Which part keeps a homemade simulation from drifting off course?

Which part keeps a homemade simulation from drifting off course?

More on this

Words from this lesson

Prompt
The instruction or question you give an AI. Clearer prompts with context usually get much better answers.
Role prompting
Starting a prompt by telling the AI who to act as, such as an experienced editor, to shape tone and focus.
Prompt engineering
The practice of wording, structuring and testing prompts to get reliable, useful results from AI.