If you try to run any test cases, I suggest that you only use the "00" rectangle for your tests, as I haven't fully updated the other rectangles yet. I tried to use comments to help explain what is doing what, so I hope that helps. I'm baffled by this problem, and I can't seem to think of any solution. Whithout the while loop in place, the program doesn't keep updating the current funds for each time it is clicked, it only records the gain/loss once, and then seems to reset itself back to 300. 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |