Skip to content

Simulation of Player movement in the game of Monopoly for Statistical purposes.

License

Notifications You must be signed in to change notification settings

Raychani1/Monopoly_Simulation

Repository files navigation

Monopoly Simulation

About The Project

This Project simulates the movement of a Player in the game of Monopoly. Once the simulation is over statistics are displayed.

Features

  • Logging - Each movement on the board is displayed as a log message in the terminal, which represents the current tile the Player is on, the dice roll and the number of times the Player have crossed the 'Go' Tile. This way we can see the progress of the Player in the simulation. For example:
Current tile: ['Green #2'] - North Carolina Avenue, Rolled: 7, Crossed GO: 98x
  • Saved Text Output - Tile visit statistics data are sorted and save to Output files.

  • Dice Roll Distribution Plots - Distribution of dice roll sums are displayed in interactive count plots. Roll Distribution Plot

  • Top 10 Visited Tiles Plots - Top 10 most visited tiles are also displayed and saved. Top 10 Visited Tiles Plot

  • Grouped Visit Line Charts - We can look into tile group based visits in interactive line chart. Grouped Visit Line Chart Grouped Visit Line Chart Gif

  • Board Heatmaps - Based on the collected data a heatmap is also generated. Heatmap Screenshot

Built With

  • Python 3.10
  • NumPy
  • Pandas
  • Plotly

Getting Started

To get a local copy up and running follow these simple steps.

Prerequisites

  • Python 3.10.x - It is either installed on your Linux distribution or on other Operating Systems you can get it from the Official Website, Microsoft Store or through Windows Subsystem for Linux (WSL) using this article.

Usage

  1. Clone the repo

    git clone https://github.com/Raychani1/Monopoly_Simulation.git
  2. Navigate to the project folder and call the Executor script

    On Linux:

    ./Monopoly_Simulation [Number of Rounds]

    On Windows:

    .\Monopoly_Simulation.ps1 [Number of Rounds]

License

Distributed under the MIT License. See LICENSE for more information.

Acknowledgments

About

Simulation of Player movement in the game of Monopoly for Statistical purposes.

Topics

Resources

License

Stars

Watchers

Forks