protocol.rgp
protocol.rgp
Raccoon Game Protocol (RGP) — text-based engine communication.
Inspired by UCI (chess). Communication via stdin/stdout.
Controller -> Engine commands: rgp identify protocol isready ready check newgame start new game position
Engine -> Controller responses: id name Raccoon v0.1 rgpok protocol acknowledged readyok ready bestmove
Classes
| Name | Description |
|---|---|
| RGPEngine | Raccoon Game Protocol engine. |
RGPEngine
protocol.rgp.RGPEngine(network, default_simulations=100)Raccoon Game Protocol engine.
Methods
| Name | Description |
|---|---|
| run | Main loop: read commands from stdin, write responses to stdout. |
run
protocol.rgp.RGPEngine.run(input_stream=None, output_stream=None)Main loop: read commands from stdin, write responses to stdout.