See how Tactiko's heuristic AI scores every grid position. Place players on the pitch, then watch the heatmap reveal what the AI "thinks" is the best move.
The defensive AI uses a man-marking system where each defender is assigned to the closest attacker via greedy matching. For each possible move (the 8 adjacent cells + staying put), the AI calculates a composite score based on multiple factors:
Attacking teammates (non-ball-carriers) choose positions to maximize their chance of receiving the ball and scoring. The scoring system evaluates:
Each bot in Tactiko has a unique personality that adjusts the weight of these scoring factors. The four main dials are:
The best defensive cells share these properties: they're goal-side of the assigned attacker, within Chebyshev distance 1 (i.e., one move away), inside the shooting zone (rows 2-3), and not overlapping with another defender. The ideal is to be on the anticipated position of your man, which blocks their advance and contests any shot attempt.
The "anticipation" mechanic is crucial: defenders don't just react to where attackers are now — they predict the attacker will move one row forward and position accordingly. This is why you sometimes see AI defenders appear to "retreat" even when the attacker hasn't moved yet.
Try adjusting the sliders above to see the effect. A "park the bus" defense (depth = 0.0) creates a wall in rows 2-3 but leaves midfield open. A high press (depth = 1.0) can intercept passes early but risks leaving gaps behind. High forward bias on attack makes explosive runs but can leave attackers offside (too far forward). High randomness makes the AI unpredictable — sometimes brilliantly creative, sometimes making bizarre moves.
This is the same AI you play against in Tactiko. Can you outsmart the heuristics now that you've seen how they work?
Play Tactiko