What are ttl, ctl and tcl and so on ?
I am using eclipse so it works because I have the console open.System.out.println()
Is this homework ? We don't do homework.
private static final long serialVersionUID = 1L;
arrays
if (event.getY() <= 100){
if (tTL == false){ //Check if square is taken
if (player == 1){ //Check if player 1
cTL = true;//X takes the square
repaint();
tTL=true;//space taken
}
else {
cTL = false;//O takes the square
repaint();
tTL=true;//space taken
}
tTL=true;//space taken
System.out.println("Top Left");
}
It was a bit vague, I just took the distance where it appeared to be just touching the edge of the other circle.Well, that sounds kind of vague.
It sounds like you're now changing things randomly to see what happens
Rob Prime: your first piece of code should work if you change the < symbol to >
Where did the 35 come from?