can anybody see anything worng?
I'm returning these to the main
sO=ScoreO(O);
sX=ScoreX(X);
These are my two methods:
[java]
//method to tally the score for x
public static int ScoreX(boolean X){
int scoreX=0;
if(X==true){
scoreX+=1;
}
return scoreX;
}
//method to tally the score for x
public static int ScoreO(boolean O){
int scoreO=0;
if (O== true){
scoreO+=1;
}
return scoreO;
}
}
[/java]
What is wrong, because I can't figure it out...