Okay, so today I decided to mess around with creating a digital scorecard, specifically for Rory McIlroy. I’ve been following his game lately, and I thought it’d be a fun little project to track his scores in a more organized way. Plus, I get to brush up on my basic coding skills – win-win!

Getting Started
First things first, I needed to figure out how I wanted to structure this thing. I’m not building anything fancy, just a simple way to record his scores for each hole, maybe the par for each hole, and calculate his total score. No databases or anything like that, just pure, simple code.
Building It Out
I decided to use good old, I started by setting up a basic structure to hold the data. It looked something like this:
- Hole 1: Score – [ ], Par – [ ]
- Hole 2: Score – [ ], Par – [ ]
- Hole 3: Score – [ ], Par – [ ]
…(and so on for all 18 holes)
Then I filled in the par values for a typical course. Of course, these could change depending on the specific tournament, but I just used a standard set for now.
Next step, actually entering the data. This part is manual right now. I just grab Rory’s scores from whenever he played his last round, I am so exciting for the scores, and plug them into the right spot.

Calculating the Total
Once I had all the scores in, I needed a way to add them up. No big deal. Just a simple loop that goes through each hole, grabs the score, and adds it to a running total. Then I can display that total, and maybe even calculate his score relative to par (like, +2 or -3). I did it!
Finally, I thought it might be useful to track fairways hit, greens in regulation, and putts per round.I also need to figure out how to add those in without making things too complicated.
The End Result (For Now)
Right now, I’ve got a very basic, but functional, scorecard. It’s nothing groundbreaking, but it does what I need it to do. I can easily see Rory’s scores, his total, and how he’s doing relative to par. It’s a nice little way to keep track of his performance, and it was a fun little coding exercise for me, too!