As you can see in the code, the 'WinnerString' is undefined at first. It is set to the value of the button if a winning combination is met. Otherwise it stays blank. When the button is clicked (which...
Type: Posts; User: Jakesta42
As you can see in the code, the 'WinnerString' is undefined at first. It is set to the value of the button if a winning combination is met. Otherwise it stays blank. When the button is clicked (which...
Thank you for all of these replies. Yes, the code has been changed a little, and I have tried using a println everytime the Applet reaches that button. The problem seems to be that ActionPerformed is...
Yes, I did change all of the string comparisons to '.equals()', but the same problem still persists, and there was no visible change. Sorry about this; it's difficult to explain the specific problem,...
Yes, I understand that the Applet ends up comparing blank strings, which is what initiates the 'Win' boolean, but I already tried to find my way
around that with the 'IfNull' boolean at the end.
...
Apologies, I'm new to this forum. The combinations that aren't working are:
Row1Column1 + Row1Column2 + Row1Column3
Row1Column3 + Row2Column3 + Row3Column3
The Code (pardon the awfulness of...
Hey all,
I'm currently in the process of making Tic Tac Toe, and most of it is working. The way I wrote it (Warning: It's written in a god-awful manage) is with
9 buttons, with the a String...