This is an article about the Chopsticks AI Chopfish. To play Chopfish, see here. To analyze a Chopsticks position, see here.

About Chopfish

Chopfish is the latest and greatest technology in Chopsticks history. It can perform analysis, predict moves, and make moves all in less than a second!

How Chopfish Plays

Chopfish plays with simple rules: Rollover and Even-Split. These rules were created by children playing and wanted to make Chopsticks easy but engaging. In official math papers, rollover and even-split do not feature though. With rollover, the product of an attack is

(attacked + attacker) mod 5.

With even-split, you can only split from 0,4 to 2,2 and from 0,2 to 1,1.

How Chopfish Works

Step 1: Chopfish builds a tree of positions with each available move.
Step 2: Whenever a branch either starts looping with best moves, produces a win, or produces a loss, that branch stops.
Step 3: After all the branches stop, if a win is present, Chopfish goes in for the kill. If no win is available, it goes for a loop. Chopfish never loses in a full match without cheating.

Why "Chopfish"?

Chopfish was named after Stockfish, the strongest chess bot in history. It was chosen because Chopfish is the Stockfish of Chopsticks.

Quick shoutout: How to get Stockfish

Did you know Stockfish is available to the public and absolutely FREE? That's right, you can get the world's strongest chess player right on your computer! On Linux, run:

sudo apt install stockfish
			
On MacOS/Windows/non-debian Linux, go to the official Stockfish website and download Stockfish.