Below is a demonstration of my slot machine. Give it a wee watch.
I'm very happy with how this program turned out. It was my first major program after learning C++ for around 3 months. I had no programming experience before starting University, so when my first assignment was to make a slot machine I was understandably concerned. I had immense difficulty getting the slots rotating and stopping each rotor. However, once I overcame this obstacle and everything clicked it was very fun designing the interface with LaMothe Code. I decided a Lucky Slots theme was the only way to go 😁.
When beginning, you start with 20 gold and it costs 10 gold to spin the slots. If you fail twice in a row then you're outta luck and have to restart the game.
If you would like to check out the code, or download and play yourself to try your luck, have a look at its repository below.
Please DO NOT plagiarise my code. You will be caught, it's not worth it.
Project's Github Repository
C++ program to play slots, are you lucky enough?