Play free Fox and Geese on the cross-shaped board, as the fox or the geese, against the computer at three levels or a friend on one screen.
Geese 13 left 13
Fox 0 caught 0
Your move (Geese)
Session You 0, Computer 0, Draws 0
Wins 0
Quiet moves 0 of 30
13 geese start at the bottom and the fox in the middle. The geese take turns to step one hole forward (up) or sideways, never backward and never jumping. The fox steps one hole in any of the four directions, or jumps over a goose next to it into the empty hole just beyond, which captures that goose. A jump does not have to be taken, but if the fox can jump again after landing, it must carry on. The geese win by trapping the fox so it has no step and no jump. The fox wins when fewer than 4 geese are left, or when the geese cannot move. The game is drawn after 30 moves in a row, by both sides together, with no capture and no goose stepping forward. Geese are blue discs with a beak, the fox is an orange disc with ears. Click a piece, then a marked hole. Arrow keys move around the board, Enter or Space selects or moves, Escape lets go of the piece.
Easy picks any legal move at random, for the geese or the fox. Medium searches 3 moves ahead with alpha-beta pruning. Hard searches up to 6 moves ahead, one move deeper at a time, and stops deepening after about a third of a second. Both score a position from the geese's side: geese kept (the most important part), how far up the board they are, how little room the fox has left to walk, and any jump the fox could make right now. The fox plays for the opposite score. It is a fixed search with no learning and no opening book, so a careful player can beat it. Undo takes back your last move and the reply, and a game that used Undo is not counted as a result. Undo is not available once a game is over.
As-is, no warranty. These apps are free under their listed license and run entirely in your browser. Use at your own risk — don't blame me if your PC catches fire, your dog runs away, or the math turns out wrong. Verify anything that actually matters. None of this is professional financial, medical, legal, or engineering advice.
The board is a cross of 33 holes, the middle three rows and columns of a 7 by 7 grid. Thirteen geese start in the bottom part of the cross (the whole fifth row and the two short rows below it). The fox starts in the middle hole. The geese move first.
The geese win by trapping the fox, so that on its turn it has no step and no jump. The fox wins when fewer than 4 geese are left, because that is too few to trap it, or if the geese have no legal move. The game is drawn after 30 moves in a row, counting both sides together, with no capture and no goose stepping forward. The page shows that count.
The geese are blue discs with a small beak that points the way they walk. The fox is an orange disc with two ears and eyes. The shapes mean you never rely on colour alone. The last move is outlined, a hole where a goose was captured is ringed, and the legal holes for the selected piece are marked with a green dot.
Controls:
To move, click one of your pieces (pieces that can move have a dashed outline) and then a marked hole. A fox jump that continues stays selected: click the next marked hole until the move is finished. On the keyboard, arrow keys move to the next hole in that direction, Enter or Space selects a piece or moves it, and Escape puts the piece down. Every hole is announced with its row, column and contents, and the status line says what each move did. The page address carries the opponent, difficulty and side.
The board is a flat array of 49 cells, 33 of them holes. For every hole the engine precomputes the hole one step away and the hole two steps away in each of the four directions, or none when that is off the cross. Fox moves are the plain steps plus every longest chain of jumps; a goose jumped in a chain is taken off while the chain is worked out, so it cannot be jumped twice, and the hole the fox started from counts as empty, which lets a loop of four jumps end where it began.
The test suite pins the rules in several ways:
The computer comes in three levels and plays either side:
Both searches score a position from the geese’s side and the fox plays for the opposite score. The score is 100 per goose, plus 3 for every row each goose has advanced, minus 2 for every hole the fox could reach by walking, minus 6 for every empty step beside the fox, minus a penalty for each jump the fox has available right now. A trapped fox or a fox win scores far above or below those figures. Moves that capture, and goose steps forward, are tried first, and moves that tie for best are chosen between at random.
The alpha-beta search is checked against a plain minimax with no pruning, which gives the same value at depths 1 to 3 (and 4 where the move list is short) in positions from random games. In the test suite, Medium won at least 5 of 6 games against Easy playing the fox, and at least 5 of 6 playing the geese. Hard searching 4 moves ahead did the same. In the suite’s test positions, Medium and Hard take a goose that is hanging when it is the fox’s turn, and when it is the geese’s turn they move so that the fox has no capture. The suite asserts that Hard answers every position it is asked about in under 4 seconds, a bound loose enough for a slow machine; the design limit is about a third of a second. The computer waits about 0.45 seconds before moving so you can follow along, and moves at once if you have asked for reduced motion.
Nothing is uploaded and there is no account. Against the computer, your win count for each difficulty (for both sides added together) is saved in your browser’s local storage, as small whole numbers inside a small JSON object, under one key. Clearing site data removes it. The session tally lives only on the page and resets when you leave it. Two-player games are not saved.
Only finished games count. A game in which you used Undo is not counted against the computer, so the saved figures are not inflated.
Everything runs locally in your browser.
For informational purposes only. Not financial, medical, or legal advice. You are solely responsible for how you use these tools.