Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tomdodd4598/farkle-stats
A Python script to calculate decisions for an optimal turn in the dice game Farkle.
https://github.com/tomdodd4598/farkle-stats
Last synced: 25 days ago
JSON representation
A Python script to calculate decisions for an optimal turn in the dice game Farkle.
- Host: GitHub
- URL: https://github.com/tomdodd4598/farkle-stats
- Owner: tomdodd4598
- License: mit
- Created: 2023-03-13T18:36:03.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-11T13:52:40.000Z (over 1 year ago)
- Last Synced: 2024-10-15T07:06:20.801Z (2 months ago)
- Language: Python
- Homepage:
- Size: 1.83 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
Farkle Calculator
=================Summary
-------A Python script which calculates the optimal decisions for a single turn in the dice game Farkle. Note that this program is only concerned with optimising the score obtained in a single, isolated turn; it does not necessarily produce the optimal decisions for particular scenarios against other players.
The algorithm used is based on [Matt Busche's blog post](http://www.mattbusche.org/blog/article/zilch/) about the very similar game of Zilch, and produces expected values of rolls in agreement with [possiblywrong's blog post](https://possiblywrong.wordpress.com/2013/04/07/analysis-of-farkle/).
A few settings exist which can be easily modified, and data from the most recent run will be cached so that it can be loaded if the properties of the game haven't been changed (there is a `no_cache` version of the script for running in places such as online interpreters).
Permissions
-----------In practice, the license on any code I write means very little, but for those who want a some semblance of formality, let it be stated that all code is available under the [MIT License](https://github.com/tomdodd4598/farkle-stats/blob/main/LICENSE.md).