Giter VIP home page Giter VIP logo

monopolysimulation's Introduction

Simulating Monopoly

written by W. H. Bell [ http://www.whbell.net/ ].

This package contains a series of propability examples, building up from the probability of rolling one die, two dice, moving around the Monopoly board, adding the "Go To Jail" square and finally adding the two decks of cards. The final simulation is not complete, but should yield a probability distribution function (PDF) close to the real PDF of the game.

The package contains:

  • doc/MonopolyWorksheet.pdf - a worksheet that introduces the concepts used in the simulation.
  • python/twoDice.py - a program to print the PDF for two dice.
  • python/boardOnly.py - a program that prints and plots the PDF for a board with 40 squares.
  • python/goToJail.py - a simulation of the "Go To Jail!" square.
  • python/twoDecksOfCards.py - a simulation that includes the "Go To Jail!" square and the two decks of cards.

The examples that plot the PDF use matplotlib. This library can be installed on a debian based Linux system by typing

sudo apt-get install python3-matplotlib 

monopolysimulation's People

Contributors

williamhbell avatar

Stargazers

 avatar  avatar  avatar  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.