+ 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 ..