I feel like this is a really easy question, but I for some reason cannot figure out a code that will store the totalChips and then keep adding or subtracting to them. Every time it loops, it just starts over from 100 again.
i forgot to leave in what I was doing. I was doing totalChips + bet and then totalChips - bet. but that would just start from 100 again when it looped. I just need to know how to save it. I tried a couple different ways, but the output gave a ridiculous number each time
At the end of each comparison of die and rNumber change the value of totalChips, so that if he got the correct number, you increment it or otherwise--decrement it's value.
So, if(correct) increment else decrement