- // TODO: We have the ball\r
- | we_have_ball = halt (x, mm)\r
- // TODO: I have the ball\r
- | ballIsGainedBy me.playerID football = halt (x, mm)\r
- // TODO: Someone else has the ball\r
+// Attacker\r
+| otherwise\r
+ | i_have_ball = kickTarget (x, mm)\r
+ | ballIsFree football\r
+ | ball_in_reach maxGainReach = (GainBall, mm)\r
+ | isClosest us me ballPos.pxy = fix ballPos.pxy prec (x, mm)\r
+ | otherwise = fix {px=ballPos.pxy.px + (m 10.0), py=origpos.py} prec (x, mm) \r
+ | we_have_ball = fix {px=ballPos.pxy.px + (m 10.0), py=origpos.py} prec (x, mm)\r
+ | otherwise\r
+ | ball_in_reach maxTackleReach\r
+ | i<15 = (Tackle (hd has_ball).playerID (ms 6.0), mm)\r
+ | otherwise = (GainBall, mm)\r
+ | isClosest us me ballPos.pxy = fix ballPos.pxy prec (x, mm)\r
+ // TODO get to a free player\r