Coder Social home page Coder Social logo

monopoly-monte-carlo's Introduction

monopoly-monte-carlo

How do variations in starting conditions affect players' chances of winning?

Developed and tested with GHC 8.6.5.

Branches

  • master - All players start with equal assets
  • double_money_first - The first player starts with twice as much money as the other players
  • double_money_last - The last player starts with twice as much money as the other players
  • last_baltic - The last player starts with Baltic Avenue
  • last_boardwalk - The last player starts with Boardwalk

Strategy and Rule Modifications

All players follow a simple, hard-coded strategy. An open question, requiring an AI approach to answer, is if a player following an optimal strategy can overcome an initial disadvantage against suboptimal adversaries.

With the official rules in mind:

  1. There are no interplayer transactions other than rent payments and bulk transfers upon bankruptcy.
  2. An unowned property is not auctioned when a player lands on it and declines to buy.
  3. A jail player always moves to "Just Visiting" on its next turn. It does not try to roll dice for freedom.
  4. When a player lands on an unowned property, it always buys the property if it has adequate funds.
  5. All real estate development happens in a clockwise order of preference. For example, if the player has a monopoly on Mediterranean-Baltic and a monopoly on Park Place-Boardwalk, the player will add improvements to the former first as long as room for improvements remains.
  6. Divesting real estate, to pay rent or taxes, also follows a clockwise precedence.
  7. "Chance" and "Community Chest" are not implemented. These spaces on the board are ignored.

Turns Limit

Without the posibility of players making deals, Monopoly games can last indefinitely. To mitigate this infinite loop condition, a game is abandoned when there is no winner after each player has taken 20,000 turns. The simulation continues until completing the user-specified number of games.

monopoly-monte-carlo's People

Contributors

kalbfled avatar marwahaha avatar

Stargazers

Mack Halliday avatar  avatar  avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

marwahaha

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.