API
I’ve written an API that maximizes the expected value for the game Dix Mille (or at least a version of it).
The API is hosted at https://api.charlesjamesbradshaw.com/dixmille. Call it with the following parameters:
dice
: A list of 1 to 6 numbers for the dice thrown in this turn.turn_points
: The number of points the player has so far this turn (points they would lose if they cannot set any aside).pretty_print
: Because you’re worth it.
Example: https://api.charlesjamesbradshaw.com/dixmille?dice=12225&turn_points=100&pretty_print=true
Interestingly, the total points you have overall do not affect the strategy for maximizing expected value, similarly with the dice already set aside.