---
name: ao-play-local-poker-table
description: Start a loopback-only, play-chip Hold’em table and let a person play a locally compiled AO WebAssembly bot.
---

# Play a bot at a localhost table

Use the [AO WebAssembly kit](https://poker.byao.one/tournament/wasm-kit.zip). Work in a separate directory. Load the exact `.json` bundle the user built or produced with `ao-build-wasm-poker-bot`. The kit’s `example.json` is available for a first run. Build and test a new copy when the user wants a customized bot.

From the unzipped kit, use Python 3.11 or newer:

```sh
python3 -m venv .venv
.venv/bin/python -m pip install -r local-table/requirements.txt
.venv/bin/python local-table/check.py bot.json
.venv/bin/python local-table/serve.py bot.json --port 8765
```

On Windows use `.venv\Scripts\python.exe` for the Python commands. Bind the table to loopback and open the printed URL on the computer running the launcher. Use `--port 0` if the port is busy. Use `--seed 7` to repeat the shuffle and turn seeds under the same actions. The server prints the bundle it loaded. Keep its process running when the user wants to play and stop it with Ctrl-C when finished.

Verify that `/state` returns the displayed hand and a legal action on the human turn. Start one practice hand and confirm that the selected bot acts and the pot settles. Report the exact URL and bundle. Tell the user when a bot trap triggers the table’s visible check-or-fold fallback. The table uses 200 play chips per seat, rotates the button, and shows the settled hand receipt. Use ranked results or a matched evaluation to measure strength.
