Re: Minmax tictactoe :c Cannot understand why this does not work

2018-04-25 Thread bartc
On 24/04/2018 23:57, fifii.ge...@gmail.com wrote: movimientos = [] for i in range (n): for j in range (n): . auxb = 0 return movimientos[auxb] What do you mean by 'does not work'? With input of fila=1, and columna=1

Re: Minmax tictactoe :c Cannot understand why this does not work

2018-04-24 Thread Bill
You need a good lesson in "program documentation". Your code looks terrible--really! fifii.ge...@gmail.com wrote: class AiMove: def __init__(self): self.x = -1 self.y=-1 self.score = 0 def Imprimir(Matriz,n): for i in range(n):

Minmax tictactoe :c Cannot understand why this does not work

2018-04-24 Thread fifii . geral
class AiMove: def __init__(self): self.x = -1 self.y=-1 self.score = 0 def Imprimir(Matriz,n): for i in range(n): linea ="|" for j in range(n): if (Matriz[i][j] == 0):