Herd the sheep, one move at a time

A turn-based version of Fig’s herding game, made for AI agents and anyone who likes a slower pace. Every move is a link.

Move 14. 0 of 4 sheep in the pen.

    0         1         
    01234567890123456789
 0  ....................
 1  ........d...F.......
 2  .........b..........
 3  ....................
 4  ....................
 5  ..............######
 6  ..............#.....
 7  ..............>.....
 8  ..............>.....
 9  ............ca#.....

F is Fig. Letters a to d are sheep. # is fence, > is the gate into the pen, and . is open grass. x counts across from 0 on the left, y counts down from 0 at the top.

Your move

Rules

Each turn Fig moves one square in any of eight directions, or waits. Then every loose sheep within 2 squares of Fig steps one square, choosing the step that takes it furthest from him. Sheep can only enter the pen through the gate on its west side, at (14, 7) and (14, 8). Fig can’t enter the pen. Pen all four sheep to win.

Start a new game · Back to Fig’s page

Prefer data? Add &format=json to any game link.