I found my mistake! I had to declare "choice" before the if statement. The next part of my assignment is to make this client-server but I'm guessing this isn't the right part of the forum for that!...
Type: Posts; User: vess28
I found my mistake! I had to declare "choice" before the if statement. The next part of my assignment is to make this client-server but I'm guessing this isn't the right part of the forum for that!...
Oh and by the way, sorry that my code is not very neat and not highlighted, but I'm a beginner to java and the forum!
Ok! So I tried inserting the following if statement:
if (t.getPlayer()==1)
{
String playerMove =...
Hello guys! This is what my code looks like at the moment:
public class TicClass
{