Coders Packet

Casino Game Using C++

By Neeraj Kumar Singhal

In this game, I used C++ language in which the player chooses a number between 1 to 10. If he wins the money would become 10 times and if he loses he loses all his money.

This program is a simple console-based program. Initially player inputs his money and the amount by which he wants to play. The player has to choose a number between 1 to 10 if the number matches the random number he wins and his money becomes 10 times his betted money. But if lose, he loses all his betted money.

For random numbers, we use the rand() function. For the rand() function we have set its limit from 1 to 10.

For more information. Download the Project.

Download Complete Code


No comments yet