Soccer AI
- He puts in variables to say who is receiving,
closest, controlling and supporting. Is that good?
- Calculating the best support spot. He uses an
evaluation function based on the position of other
entities.
- Team States: attacking or defending
- Player States: wait, receiveBall, kickBall, dribble, chaseBall,
returnHome, supportAttacker
- Other than that it's just an FSA.
- Goalie states: tendGoal, returnHome, putBallInPlay, InterceptBall
- It's also an FSA.
- A lot of the smarts come from smart low level behaviour.
- Methods like isPassSafe, canShoot, and findPass can really
change the behaviour of the system.
- A poor canShoot function will either shoot all the time or never.
- Also note that super-human behaviour here (like perfect gun shooting
or knowing things a player couldn't know via the team class)
can make the AI seem unrealistic.
- Do you want to look through the math for isPassSafe(pg 177)?