Things like that are where the creativity comes in and the programming ends. The programming for that would be very simple. Just using several random numbers for the dice and a couple variables for the wagers and the total ammount of money the player has.
But as for the logic of the program. Try making it where the player just inputs how much money they want to bet on the game. Then the dice are rolled and if the numbers on the dice add up to like 7 or 11 or something like that, the player wins the ammount of money the wagered. Like:
TOTAL% = TOTAL% + WAGER%
And if they lost, just subtract the WAGER%. From there, you can add varaitions to wins/losses, and whatever else you might see fit.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.