What inspired me to do this project is my fondness for games. I love games, especially learning how to program a game and coding a game.
What this project does is basically a casino game, in which a player must deposit any amount that the player desires to bet to enter the game, then the player has to guess a number between 1 to 10, then it generates a random number, which is a winning number, and finally, it compares the player's guessing number and the winning number to see if they match or not. If both matches, then the player wins 10 times his bet amount, and if both don't match, then the player loses the bet amount.
How I built this project by using C++. I basically coded 4 functions for the title, the rules, the random number generator (winning number generator), and the result. Then I coded the while loop with always true condition to make the game continue on until the player decided to stop playing. Finally, I coded the inputs asking for the user's inputs and calculates the results.
The challenge that I ran into checking the validity of the inputs because I have to think about the logic condition to check if the inputs are valid or not.
The accomplishments that I'm proud of from this project are how well it turned out and how well it functions.
What I learned from the project is the application itself because I'm able to use the programming language C++ and code a real-life application, like the casino guessing number game.
What is next for this project is to add more players to the casino guessing number game.
Log in or sign up for Devpost to join the conversation.