It seems as if the while loop is not working properly, and it is an infinite loop (so be careful if you try to run my code).
However, it is still not working properly. I tried turning the 'current funds' itself into a class, so that it could keep track of itself whenever money was gained or lost.
With my program, I have been trying to simulate the game of Roulette (at a casino) with a GUI, but I have a problem that I can't seem to figure out.įor some reason, any kind of accumulator for 'current funds' I place in the program doesn't seem to work properly.