How theabry/col333-assignment-3-py2d-fork works
This is a Python RoboCup 2D soccer-agent framework: a match runs agents against the soccer server, players interpret each world state, choose a strategy and decision, and emit actions. The main product workflow is the sample player’s strategy/decision path, with specialized play, penalty, movement, and formation capabilities. It also exposes a student-facing policy/runtime framework and replay interface. Some subsystems are documented or indexed but not sampled; their uncertain connections are omitted.
Main entry points: sample_player_agent.py Sample player agent · bhv_starter_setplay_goal_kick.py Goal-kick behavior · decision_maker.py Decision router · bhv_starter_setplay_indirect_freekick.py Indirect free kick
Components 28
Match runtime
- Match runner
a3.py - Agent RPC server
server.py - Replay interface
gibbs/play.php
Player decision
- Sample player agent
src/sample_player_agent.py - Decision router
src/decision_makers/decision_maker.py - Movement decision
src/decision_makers/move_decision_maker.py - Play-on decision
src/decision_makers/play_on_decision_maker.py - Agent state
src/interfaces/IAgent.py - Soccer calculations
src/utils/tools.py
Soccer behaviors
- Starter set plays
src/behaviors/starter/bhv_starter_setplay.py - Placed-ball behavior
src/behaviors/starter/bhv_starter_go_to_placed_ball.py - Clear-ball behavior
src/behaviors/starter/bhv_starter_clearball.py - Passing behavior
src/behaviors/starter/bhv_starter_pass.py - Indirect free kick
src/behaviors/starter/setplay/bhv_starter_setplay_indirect_freekick.py - Goal-kick behavior
src/behaviors/starter/setplay/bhv_starter_setplay_goal_kick.py - Penalty behavior
src/behaviors/starter/bhv_starter_penalty.py
Position strategy
- Starter positioning
src/strategy/starter_strategy.py - Formation positioning
src/strategy/formation_strategy.py - Formation model
src/strategy/formation_file.py - Player roles
src/strategy/player_role.py
Student framework
- Student action API
src/student/interface.py - Student agent entry
src/student/agent.py - Student runtime
src/student/framework/runtime.py - Student policy
src/student/framework/policy.py - World representation
src/student/framework/world.py - Decision trace
src/student/framework/trace.py
Other components
- Match operator
- Soccer server
Connections 26
- Match operator → Match runner: starts match
- Match runner → Soccer server: runs match against
- Agent RPC server → Sample player agent: dispatches actions
server.py - Sample player agent → Decision router: requests decisions
src/sample_player_agent.py - Sample player agent → Starter positioning: updates strategy
src/sample_player_agent.py - Sample player agent → Formation positioning: selects strategy
src/sample_player_agent.py - Sample player agent → Agent state: inherits state
src/sample_player_agent.py - Decision router → Play-on decision: routes play
src/decision_makers/decision_maker.py - Decision router → Movement decision: routes movement
src/decision_makers/decision_maker.py - Movement decision → Soccer calculations: uses calculations
src/decision_makers/move_decision_maker.py - Play-on decision → Movement decision: delegates movement
src/decision_makers/play_on_decision_maker.py - Starter set plays → Indirect free kick: dispatches play
src/behaviors/starter/bhv_starter_setplay.py - Starter set plays → Goal-kick behavior: dispatches play
src/behaviors/starter/bhv_starter_setplay.py - Goal-kick behavior → Clear-ball behavior: uses behavior
src/behaviors/starter/setplay/bhv_starter_setplay_goal_kick.py - Goal-kick behavior → Passing behavior: uses behavior
src/behaviors/starter/setplay/bhv_starter_setplay_goal_kick.py - Goal-kick behavior → Placed-ball behavior: uses behavior
src/behaviors/starter/setplay/bhv_starter_setplay_goal_kick.py - Indirect free kick → Passing behavior: uses behavior
src/behaviors/starter/setplay/bhv_starter_setplay_indirect_freekick.py - Indirect free kick → Placed-ball behavior: uses behavior
src/behaviors/starter/setplay/bhv_starter_setplay_indirect_freekick.py - Formation positioning → Formation model: loads formations
src/strategy/formation_strategy.py - Formation model → Player roles: uses roles
src/strategy/formation_file.py - Starter positioning → Formation model: uses formation data
src/strategy/starter_strategy.py - Student agent entry → Student action API: exposes interface
src/student/agent.py - Student runtime → Student agent entry: invokes agent
src/student/framework/runtime.py - Student policy → Decision trace: records decisions
src/student/framework/policy.py - Student runtime → World representation: uses world state
- Replay interface → Soccer server: views match replay