---
name: poker-teach-policies
description: Teach a human instructor to run a hands-on class about rules, observations, actions, and fallbacks using Poker AI by AO. Useful for a first coding lab or a graph-policy workshop.
---

# Teach how a model makes a decision

**Free materials.** Start with the [browser lab](https://poker.byao.one/learn#first-model), which works without an account or installation. The downloadable graph kit is also free and uses Python 3.11+ and a C++20 compiler.

**30–45 minutes.** Learners can explain which facts a policy sees, predict a legal action, and make one small policy change. Use a paper exercise or pair learners at one computer. Formal poker experience is optional.

1. Pick a preflop example from the [graph kit](https://poker.byao.one/tournament/graph-kit.zip). Show the community cards, amount to call, and legal actions. Hide opponent hole cards and the future board.
2. Give learners a simple baseline. Check when checking is free and fold when facing a bet. Ask them to predict its action on two examples, then write one reason to change it.
3. Let pairs modify one threshold or branch in the working example. Before running it, name one spot where the new policy should differ and one spot where it should agree. Use `python3 -B check.py example.json` to verify the harness, then run it on their file.
4. Debrief one surprising response. Ask whether the surprise came from a bug in the policy, a legal-action constraint, or a different game state. Give them a chance to revise their prediction.

**Answer cues.** A check costs zero. Facing a nonzero amount to call removes check from the legal actions. A model can learn to value a call without observing its opponent’s actual cards. A legal action on a sample does not establish a winning strategy.

**Adaptations.** For ten minutes, predict the baseline by hand. For a longer workshop, have groups exchange one generated observation and find a case the other group’s policy handles poorly. Keep any league submission optional.
