I am having a problem with this basic game. I can get it to work right, if u choose the right or wrong answer. Any assistance would be appreciated. [ edited to fix code formatting -ds ] [ December 09, 2003: Message edited by: Dirk Schreckmann ]
sorry...My problem is during the game, if you choose the wrong answer, it gives me the right response, but the counter isnt working, so the game ends. also, if you choose the correct answer, nothing happens.
Joined: Dec 10, 2001
You definitely have problems with your program logic that occurs when the actionPerformed method is invoked. Why do you have a while loop in the actionPerformed method? Should that while loop actually be an if statement? It works quite a bit better when that change is made, but it isn't perfect. How's it going?
Joined: Oct 13, 2003
thanks, I had it fixed a couple of hours later. I figured out what I did wrong.