A Tic Tac Toe game!
HeadSucksAtLife (118)

In the comments, please rate it out of 10. Thanks you!

You are viewing a single comment. View All
Coder100 (8532)

10/10, It's really cool how you did this:

:)

One suggestion:
Make it so when you confirm names, you can also type in y

HeadSucksAtLife (118)

I made if statements. Here's the code:
if ( (row[0].equals(row[0])&&row[0].equals(row[0]) && !row[0].equals("#")) ){
return Arrays.binarySearch(mark, row[0]);
}
if ( (row[0].equals(row[1])&&row[1].equals(row[2]) && !row[0].equals("#")) ){
return Arrays.binarySearch(mark, row[0]);
}
if ( (row[0].equals(row[1])&&row[1].equals(row[2]) && !row[0].equals("#")) ){
return Arrays.binarySearch(mark, row[0]);
}
if ( (row[1].equals(row[1])&&row[1].equals(row[1]) && !row[1].equals("#")) ){
return Arrays.binarySearch(mark, row[1]);
}
if ( (row[2].equals(row[1])&&row[1].equals(row[0]) && !row[2].equals("#")) ){
return Arrays.binarySearch(mark, row[2]);
}
if ( (row[2].equals(row[2])&&row[2].equals(row[2]) && !row[2].equals("#")) ){
return Arrays.binarySearch(mark, row[2]);
}
if ( (row[0].equals(row[1])&&row[1].equals(row[2]) && !row[0].equals("#")) ){
return Arrays.binarySearch(mark, row[0]);
}
if ( (row[0].equals(row[1])&&row[1].equals(row[2]) && !row[0].equals("#")) ){
return Arrays.binarySearch(mark, row[0]);
}
return -1;
}
}
Thanks for the feedback!
@Coder100

NoNameByProgram (78)

@MohammedBalsara when i see that code i think of YandereDev