on-internet
← Community

Doing Tic Tac Toe game with GUI interface on java, facing runtime error after including new method

Stack Overflow ·

So I am making a tic tac toe game with user friendly GUI interface. I have almost completed the game but there seems to be a problem with my checkWin function. Up to this point, everything was working just fine until I added the checkWin function and the parameters associated it with it. Before I implemented the checkWin function, you would press a button, it would be marked X and then there would be an automated computer move that would place an O randomly on the board where there isn't an X. Code is posted below. When I run the code, and you press a button, the applet just freezes and you ca

Comments

Sign in or sign up to comment and upvote.

No comments yet.