I'm doing the game of tres en raya , but when checking if a box in the array is crossed out, it does not do it to me.
Code:
Player is a class, and list_ players in an arraylist, what I do is see if a player is trying to cross a square that already has the symbol of another player, but does not enter that if it does not mean that, I have the same problem in another part of the code, it must be the same problem, that's why I put this one that is the shortest
if(tablero[x][y].toString().equals(Jugador.lista_jugadores.get(0).getSimbolo_jugador())) {
System.out.println("ya esta tachada");
}