After a months-long break from working on the Monopoly simulator, I am returning to this project with the intention of programming on a more regular basis. To help speed things along, I will be updating this blog with shorter, more frequent posts.

The latest series of commits to the code repository accomplished four improvements:
- Code development using Jupyter Notebook as opposed to .py script file format
- Minimum game mechanics to enable a game of players that buy and rent ad infinitum
- A global
VERBOSEargument that declares explicitly what happens in the game - A visualization of players’ cash that updates dynamically at the end of every turn
Interestingly, a quick simulation of this minimum game shows that players never run out of cash as buyers and renters who cannot buy houses and hotels.
My next goal is to build methods that allow players to buy houses and hotels to confirm that it is only when this game feature is enabled that players can go bankrupt.
I tried downloading your code and running it, but it didn’t run – it seems to get stuck on a url that is hardcoded in the source – line 289 in monopoly.py – is there a library I need to install for this to work?
Hey, Adam. Sorry for the confusion. Checkout monopoly.ipynb instead. Monopoly.py is old code that I don’t use anymore and the URL in that line was just a note for reference. You can remove it completely.
I’m not very good with Github. It seems that you have to set something up and merge with it. Could you just provide a download of monopoly.ipynb. I’d like to craft some monopoly strategies and see how they pan out. I’ll let you know about my work.
Kyle, all you need to do is fork the repository to your local drive.