Buckland's Soccer Game
- Let's walk through the game as it's described in the book. We're not
going to implement it as a lab, but feel free to use his code.
- He gives some classes and rules.
- He then splits the pitch into sections. Why?
- It's a reasonable way to divide the pitch so that players
can more easily go to reasonable places.
- You could use more, or fewer squares, but his 18 seems a reasonable
start.
- It might not be optimal, but it is a good approximation to say that
the keeper stays in 1 if the ball is on his side of the pitch.
- Another approximation is modelling friction on the football by
constant deceleration.
- He's using physics for movement, but friction is now modelled
by a deceleration.
- This means you don't have to do the physics calculations
for grass/ball friction.
- Buckland plugs and chugs to come up with time to cover distance
(shall we look on page 142).