Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis+ 2
Hii all .. i wrote an XO game code but i cant end the program when a player wins before entering all the elements any ideas ??
2 Respostas
+ 2
If you use 3Ć3 matrix, you should check if there is three equal symbol in a row, column or diagonal, every time after a player finished his turn.
You also can do it with any nĆn matrix
0
i wrote a function that tests if a player wins but my prob is that ahen a players wins the code continues till all my 3*3 elements are entered ..