main (examples/pychess/main_wrapper.py)¶
Overview · 2 steps, 1 lane
All 2 steps
| # | caller | callee | what it does | frames | call site |
|---|---|---|---|---|---|
| 1 | main | game_loop | Initialize engine with MCP server, run game, clean up. | try (line 293) | examples/pychess/main_wrapper.py:293 |
| 2 | game_loop | _play_game | Alternate human/AI turns until game over or quit. | — | examples/pychess/main_wrapper.py:279 |
Functions¶
3 functions
_play_gameexamples/pychess/main_wrapper.pygame_loopexamples/pychess/main_wrapper.pymainexamples/pychess/main_wrapper.py
This diagram as Mermaid · PlantUML · Graphviz DOT
Quick views¶
3 functions, each with its quick view
- _play_game
Alternate human/AI turns until game over or quit.
Map
Show it on the map, in its block's wedge.
Block
examples/pychess is the block holding
examples/pychess/main_wrapper.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- game_loop
Initialize engine with MCP server, run game, clean up.
Map
Show it on the map, in its block's wedge.
Block
examples/pychess is the block holding
examples/pychess/main_wrapper.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- main
Run game loop, handle keyboard interrupt.
Map
Show it on the map, in its block's wedge.
Block
examples/pychess is the block holding
examples/pychess/main_wrapper.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.