Throughout the process of designing this game, the main problem that kept arising was correcting for invalid user input. These problems were easily fixed by setting up simple if statements. After these issues were resolved, the game was tested. when the game was tested, it worked exactly like it was supposed to. The user input numbers for how much money they have, how much money they wanted to bet, and what they thought the sum of the two dice would be. The program output whether or not the user won, how much they won or lost, and what their new balance is. After this, the program asked the user to input whether or not they wanted to continue.
The game started off as three input questions. This was followed by rolling the dice, then summing the roll. After this, an if statement was used to determine whether or not the player had bet correctly. Once the basics of the game were created, a while loop was added to keep the game running as long as the user wanted to continue. While loops and if statements were also added around the user inputs to ensure the inputs were valid. After these elements were added, the game ran without any flaws.