okay.
--- Update ---
I used the equals() method, then I had some nullpointer error which i fixed in the constructor. Thanks :)
Type: Posts; User: d34dli
okay.
--- Update ---
I used the equals() method, then I had some nullpointer error which i fixed in the constructor. Thanks :)
the code works fine when I ran tests with this segment of code in the main method
game.assignMove("o",1);
game.assignMove("o",4);
game.assignMove("o",7);
...
I'm currently writing this TicTacToe program on BlueJ.....and for some reason the while loop in the main method runs infinitely
import java.util.Scanner;
public class TicTacToe
{
...