Skip to content

calicorob/dice-game

Repository files navigation

DiceGame

Author: Robert Currie

Last Update: March 19, 2021

This repository holds the code that was used to generate the results in the article titled, "Ruining my friend's game through computation" on Medium.com.

Article: Runing My Friend's Game Through Computation

Directory

Home

Modules

  • dice.py : custom module for the objects required to run the Dice game simulations.
  • simulations.py : custom module used to run simulations of the Dice game.

Notebooks

  • Expected Score.ipynb : Jupyter Notebook for calculating the expected score of a turn, based on the score you try and roll each turn.
  • Looping opponent max score.ipynb: Jupyter Notebook for producing simulation results of different game scenarios.
  • Opponent max score analysis.ipynb: Jupyter Notebook for analyzing simulation results.
  • Simulation Example.ipynb : Jupyter Notebook for demonstrating how simulations are done.
  • Testing dice.ipynb: Jupyer Notebook for testing the dice.py module.

Other

  • WinPctResults.csv: Simulated win percentages of player from looping opponent score threshold and player score threshold.
  • TurnExpectedScore.png: Scatter plot of expected player score at different score thresholds.
  • OpponentThresholdSurface.png: Surface plot of simulated player win percentages at different opponent score thresholds and player score thresholds.
  • Contains old development Notebooks and files.

About

Repo for dice game

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published