Wolves & Sheep
Draw a Slitherlink loop that fences the gentle sheep in and keeps the fierce wolves out.
Basic Game Premise & Rules
MechanicsWolves & Sheep is an untimed, deterministic pencil-and-paper logic puzzle played on a grid. Every valid puzzle has exactly one unique solution that can be discovered through rigorous deductive reasoning alone, without trial and error or guessing.
- Draw a single continuous closed loop along the grid dots.
- Numbers inside cells indicate how many edges of that cell are part of the loop.
- Animal Separation Rule: Every sheep (🐑) must end up safely inside the loop.
- Every wolf (🐺) must remain stranded outside the loop.
- The loop cannot cross itself, branch, or touch unvisited animal cells inappropriately.
Rules by Example
See how each rule looks when done correctly versus when violated:
The Animals (Sheep and Wolves)
Every sheep (🐑) must end up inside the closed fence, and every wolf (🐺) must remain outside.
The Loop and Numbers
Draw one continuous closed loop. A number tells how many of its four sides the loop runs along.
History & Origins
Origins & EvolutionWolves & Sheep was introduced by Nikoli in the early 2000s as a creative thematic expansion of Slitherlink. By incorporating animal symbols into the classic numbered grid, the puzzle introduced an intuitive narrative: the player acts as a shepherd erecting a protective fence around their flock while excluding predators.
This thematic framing makes topological Jordan-curve reasoning immediately palpable: rather than abstractly calculating crossings, solvers can immediately tell that any path from a sheep to a wolf must cross the fence an odd number of times.
Mathematical Concepts & Computational Complexity
Computer Science & Discrete MathBeyond its entertainment value, Wolves & Sheep formalizes core principles of discrete mathematics, theoretical computer science, and combinatorics:
Bipartition via the Jordan Curve
The loop defines a 2-coloring of the grid faces into Interior (I) and Exterior (E). The condition that all sheep S ⊂ I and all wolves W ⊂ E converts the topological loop problem into an oriented planar boundary cut separating two designated point sets S and W.
Point-in-Polygon Topological Invariants
Determining whether a cell is enclosed can be verified via the ray-casting algorithm: a horizontal ray from infinity must cross an odd number of vertical loop segments to reach a sheep, and an even number to reach a wolf. This imposes global parity constraints on the vertical edge sum of every row.
NP-Completeness and Separating Cycles
Because it generalizes classic Slitherlink (a board with no animals is identical to Slitherlink), Wolves & Sheep is NP-complete. The presence of animal constraints reduces the solution space, allowing puzzle designers to construct intricate deduction chains with fewer numerical clues.
References & Further Reading
Bibliography- Nikoli (2002). Puzzle Communication Nikoli #98. Tokyo: Nikoli Publishing.
- Hearn, R. A., & Demaine, E. D. (2009). Games, Puzzles, and Computation. CRC Press.
- Preparata, F. P., & Shamos, M. I. (1985). Computational Geometry: An Introduction. Springer-Verlag.
Free Printable PDF Booklet
Download our beautifully formatted, high-resolution A4 puzzle booklet. Generated directly from the handcrafted levels on AZTest, it contains 50 puzzles ordered from gentle introductory boards up to master-level challenges, followed by complete solutions at the back.
| Difficulty Stage | Grid Size | Description | Puzzles |
|---|---|---|---|
| Intro | 5×5 | Simple pastures with 1 sheep and 1 wolf to master fencing. | 3 |
| Easy | 5×5 to 6×6 | Combining animal placement with corner and edge clues. | 12 |
| Medium | 7×7 to 8×8 | Multiple animal flocks requiring serpentine fences. | 12 |
| Hard | 8×8 to 9×9 | Tight animal groupings forcing complex loop excursions. | 12 |
| Expert | 9×9 to 10×10 | Master pastoral landscapes with long-range topological cuts. | 11 |
Explore More Logic Puzzles
SeriesSlitherlink
Connect dots to draw a single unbroken loop guided by surrounding cell numbers.
Masyu
Draw one closed loop through cell centres that rigorously obeys the black and white pearls.
Nurikabe
Shade the sea to leave numbered white islands of exact sizes in one connected ocean.
Nonogram
Shade runs of cells according to row and column number clues to reveal a hidden picture.
Themed Nonogram
Solve color picture cross puzzles that blossom into vibrant pixel art upon completion.
Hitori
Shade the repeated numbers until every row and column has unique digits, keeping all white cells connected.
Kurodoko
Shade cells so every numbered circle sees exactly that many white cells in its row and column.
Mosaic
Shade cells guided by numbers that count how many cells around them are filled, revealing a hidden picture.
Binairo
Fill every cell with blue or white circles: never three in a row, every line half and half.
Heyawake
Shade rooms according to their clues without isolating unshaded cells or leaving long straight corridors.
Searchlights
Place light beams in white cells so that every numbered black post sees its exact clue count.
Light Up
Place light bulbs to illuminate every white cell without any two shining on each other.
Calcudoku
A Latin square where every outlined cage satisfies its arithmetic target and operator.
Skyscrapers
Place towers of heights 1 to N so that each outside clue sees the exact count of buildings.
Sum Skyscrapers
Skyscrapers where each outside clue is the sum of the heights of all visible buildings.
Suguru
The elegant polyomino number puzzle where no two identical digits can touch, even diagonally.
Futoshiki
A Latin square puzzle with inequality signs pointing between neighboring numbers.
Fillomino
Divide the grid into polyomino blocks where each cell's number equals the area of its block.
Galaxies
Partition the grid into rotational 180° symmetric galaxies, each centered on a single dot.
Shikaku
Cut the whole grid into rectangles and squares, each containing exactly one number: its area.
L-Pieces
Draw borders to partition all white cells into perfect four-cell L-shapes.
Numberlink
Connect pairs of matching numbers with continuous non-crossing paths covering the grid.
Bridges
Connect the island network with straight horizontal and vertical bridges into one united world.
Slant
Draw a diagonal slash in every cell matching the corner numbers, without ever closing a loop.
Tents
Pitch a tent beside every tree with no two tents touching, matching row and column counts.
Marupeke
Place circles and crosses in every cell without creating three in a row in any direction.