After coding a slot machine, my next C++ assignment was creating a 501 darts Simulator. This task sounded really fun. In this project I started using object orientated programming, one of C++'s main features. There are two programmed opponents, John and Sid, who play 501 darts against each other to get 0 first.
Below is a video demonstration of my 501 darts, showing gameplay options being set and the results.
One improvement I wish I had made for this project is to have created a GUI with SFML. It would have made my program a lot better and received a higher mark. Nonetheless, I'm still proud of this 501 darts simulator and how I approached solving the task. I enjoyed learning about classes and how a program could be more efficient with OOP. Back then, it made me think how my past slot machine program could have been improved if classes were used.
Below is a small report for my program explaining the mechanics.
Please DO NOT plagiarise my report. You will be caught, it's not worth it.
If you would like to check out the code, or download and run yourself, have a look at its repository below.
Please DO NOT plagiarise my code. You will be caught, it's not worth it.
A C++ program where two programmed opponents face each other in darts to get 0 first.