Built something? We create video reels & spotlights for GitHub projects.Promote your project →
Catalog / mattphotonman / yahtzee_optimize
Public GitHub Catalog Discovered Sep 27, 2026

mattphotonman / yahtzee_optimize

NOTE: CODE UNFINISHED. Code to find the optimal strategy for getting a certain combination (e.g. Yahtzee, four of a kind, full house) in a turn of Yahtzee, and to calculate the probability of getting it if you follow the optimal strategy. The desired combination is encoded by specifying point values for each possible roll of the dice at the end of the turn, and the code finds the strategy that maximizes the expectation value of the number of points. The expectation value of the number of points with the optimal strategy is also returned. If you want to know a probability of a certain combination, you can set the points for rolls belonging to that combination to 1, and set the points to 0 for all other rolls.

View repository on GitHub ↗ View creator profile Browse directory

About this discovery

This repository is cataloged as part of our automated global GitHub synchronization. Full telemetry, velocity snapshots, and code summaries are scheduled for continuous enrichment.

#8570435GitHub System ID
mattphotonmanOrganization / User
PublicVisibility
ActiveCatalog Status

More from mattphotonman

FOR MAINTAINERS

Built something? Put it in front of millions of developers.

We make a short reel about your project and post it across YouTube, Instagram, Threads, and X. Send a link, we do the rest.