Skip to content

A program to solve optimal play on the dice game pig

Notifications You must be signed in to change notification settings

Andrew-borg/Pig-Solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

To solve pig with a desired die size and max score, type "new" and follow the prompts.

To query the solution in a position type "query <your score> <opponent's score> <your turn total>"

To save the solution type "save" to write the solution as a csv file named savedsolution.csv in the working directory.
This can then be visualized by running the included python script.

I've included a windows and linux executable in case any classmates would like to try it out who may not have a C compiler on their system

About

A program to solve optimal play on the dice game pig

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published