My first Python project — the Monopoly money tracker

less than 1 minute read

So my family owns the Monopoly (Here & Now World Edition) where players use cards, instead of cash, to make transactions.

Monopoly board

Unfortunately for us, our card reader stopped working. When I started learning Python, I thought it would be interesting to create a script that can keep track of everyone’s money. Suffice to say, it did its job, but it was primitive. I revisited the script after I was done with my Master’s and gave it a little glow up.

Here’s the updated version1:

Click on the green button below to run the script.

Here’s the first version for comparison

The first version was… rough, to say the least. When I first created it, I didn’t know the concept of dictionaries or functions. This meant there was an awful lot of copying and pasting, which made the script unnecessarily long and repetitive. Looking at it makes me chuckle and cringe simultaneously.

  1. (27-02-2022): My Dad suggested I created shortcuts for 1,000 (K) and 1,000,000 (M) so that we don’t need to type out all the zeros. I’ve updated the script so that k/K and m/M is used instead. 

Tags:

Categories:

Updated:

Leave a comment