Hey folks,
A few months back I shared Muggins, the open-source cribbage engine I’ve been building (trying to make a transparent, no-ads, no-rigged-deals "Stockfish of Cribbage"). You all gave me loads of great feedback and encouragement.
Development had to take a complete pause over the summer due to some personal stuff (its been really shitty), but I’m finally back at the desk, dusting everything off and seeing where I left things.
When I last posted, Muggins was already great at discards (it calculates the exact math across every possible cut card), but pegging was still a slight weak spot. Against Myrmidon (the strongest open-source research AI out there), Muggins was winning games overall thanks to its discards, yet losing a fraction of a point per hand in the pegging phase.
So my first job coming back was fixing the pegging brain:
- Taught it to remember its own crib cards during lookahead: Turned out that when the engine simulated possible opponent hands during pegging, it wasn't excluding the 2 cards it had just thrown into the crib itself — meaning it was playing around "ghost" 5s and pairs that couldn't possibly be in the opponent's hand.
- 200-game lookahead per card + a fresh training run: I wired up a fast Monte Carlo lookahead for pegging and had the engine play 15,000 games against itself (over 1 million pegging decisions) to retrain the neural network.
- The result: That pegging deficit is officially gone. Muggins now out-pegs Myrmidon too, pushing its overall win rate against it from 69.5% → 76.8% (an average advantage of +1.70 points per hand over thousands of test games).
What’s updated if you want to have a play:
- Project site & full benchmark write-up: https://muggins.app (added a full breakdown of what worked and what failed if you like the nerdy side)
- Play against it / use the Relay Advisor: https://play.muggins.app (now uses the upgraded pegging engine and gives you live discard EV feedback after each hand)
- Discard Analyser: https://play.muggins.app/analyse (updated so you can plug in the current board score — e.g. 115–118 in the 4th street — to see how optimal discards change when you just need to peg out first)
Next big step on my list is building a clean, modern Android app (with proper layout support for foldables as well as regular phones — zero ads, no coin popups, just cribbage).
If you give the web opponent or the discard calculator a spin, let me know how it feels — or if you manage to skunk Lucky!