Skip to content

DudeUnleashed/woven-monopoly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Woven Monopoly

A Ruby CLI application that simulates a deterministic game of Monopoly using pre-defined dice rolls.

Setup

git clone https://github.com/DudeUnleashed/woven-monopoly.git
bundle install

Usage

ruby main.rb rolls1              # simulate game with first set of dice rolls
ruby main.rb rolls2              # simulate game with second set of dice rolls
ruby main.rb rolls1 --detailed   # include turn-by-turn descriptions

Running Tests

bundle exec rspec

Design

The application is split into small, single-responsibility classes:

  • Tile — represents a board space (property or GO)
  • Player — tracks name, money, position, and bankruptcy
  • Dice — reads and serves pre-defined rolls from JSON
  • Board — loads tiles from JSON, handles position lookup and colour ownership checks
  • Game — orchestrates the game loop, applying rules each turn

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages