-1
I have the following function to count how many "player" appear in the array estado[i], which is a line of a matrix:
for i in range (0, len(estado)):
if (estado[i].count(jogador) == len(estado)):
return True
But "state" is the type ndarray, how could count the amount of occurrences of "player" in estado[i] her being a ndarray?