easteregg Leprechaun
  • Patrick Collins
    • Home
    • Blog
      • eJPTv1 Certification
      • Conferences

      • Blog Home
    • Travel Photos
    • Notes
    • Graduation!
    • Projects and University Work
      • Honours Project
      • Web App Pen Test

      • All projects
    • Socials
    • About Me

    501 Darts Simulator

    Dartboard

    About

    • Module: CMP102
    • Title: Software Design
    • Grade: B

    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.

    Gameplay


    • The dart throw success rate/percentage of accuracy for each player is set.
    • The user can also choose how many matches to play.
    • A mini game is played first, to decide who starts first in the main 501 darts.
    • After the main 501 darts simulation is over, results are displayed to the user. This shows how many sets each player won, and statistics from the game.

    Below is a video demonstration of my 501 darts, showing gameplay options being set and the results.

    Your browser does not support the video tag.

    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.

    Report

    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.


    <> Code

    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.

    CMP102 501 Darts Simulator

    A C++ program where two programmed opponents face each other in darts to get 0 first.


    Copyright © 2022-2025 Patrick Collins
    Contact Me: Contact@paddylonglegs.site
    Background created by freepik