Giter Club home page Giter Club logo

farkle-optimizer's Introduction

farkle-optimizer

Find the best strategy for playing Farkle

Compile and run

On Linux, this should be as simple as

make
./playfarkle

Notes

The rules as programmed here are how I play with my family. Your rules, and the official rules, may differ.

What is the best strategy?

Well, for the rules as programmed, the following strategy will get you 515 points per round on average:

  • Keep 222 if you roll it (it's only worth 200 points, but keep it anyway).
  • Always keep a leftover 1, but only one of them, and if no 1, keep one 5; do this even if you already have other points.
  • Re-roll when you have 3 or more dice left over, BUT increase that number by 1 for every 500 points you've racked up this round; so if you have 1000 points this round, only re-roll if you have 5 or 6 dice left, not 1-4.

Other work

This problem has been addressed before, most notably here: AI-GameTheory, FarkleSolver.

Thanks

Farkle is probably a trademark, and I am using it, and the rules here, without permission.

farkle-optimizer's People

Contributors

markstock avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.