Okay, that fixed that error, but now I'm getting these.
Exception in thread "main" java.lang.NullPointerException
at tictactoeguigame.TicTacToeGUIGame.getOutcome(TicTacToeGUIGame.java:29)
at...
Type: Posts; User: monikathelover1999
Okay, that fixed that error, but now I'm getting these.
Exception in thread "main" java.lang.NullPointerException
at tictactoeguigame.TicTacToeGUIGame.getOutcome(TicTacToeGUIGame.java:29)
at...
at tictactoeguigame.TicTacToeGUIGame.main(TicTacToeGUIGame.java:18)
if(getOutcome == Outcome.PLAYER1_WIN)
I revised the code to include comments and this is what the compiler says.
Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - cannot find symbol
symbol: ...
Hello. I'm to get this TicTacToe program to stop and display the winner (or if there's a tie) and stop when the game ends. I'm trying to do this by getting the main method to read the output from the...
Oh wow, you're right.
Ah, that worked. Thank you!
It compiles fine for me, it's just displaying the board improperly.
Hello, I'm trying to get this code to display a tic tac toe game, but it displays as 9 slim buttons in a row instead of a 3 x 3 grid as it should. Can someone tell me why this is happening?
...
Okay, I think I got it now.
It'll need to take the string arguments from the Mark.java class which are "O","X","Y","R","B","G","M","N".
It well then need to set these onto the board at random locations.
Then it should...
Okay. So, the code is supposed to create three boards like this.
| | | |
———-
| | | |
———-
| | | |
———-
The method is empty, I'm trying to figure out what I should put in it.
The marks are a group of string used to mark a location on the boards, they're stored in a class called Mark.java, should I...
Yes.
The Random Location is supposed to select a random location on the game boards to put the corresponding marks on, and getRandom is supposed to extract that mark from the class.
Hello, I'm trying to get this program to test three different game boards and put them in three separate files. I have everything working except the RandomLocation method, which I'm struggling to...
Ah, that method is empty which is likely the problem.
Okay, is this it?
cannot find symbol
symbol: method getRandom(int)
location: variable rl of type RandomLocation
I don't see anything like that in the compiler, just the output.
Hello. I'm trying to get this code to work and I need help with the RandomLocation method.
package boardgametester;
import games.board.*;
import games.utilities.*;
public class...
Trying to fix a glitch.