Mehdi9721 / tic-tac-toe-using-java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tic-tac-toe-using-java

-> just create a 2d matrix assign all elememt with *
-> create player as 'X' and endgame as boolean
-> make if condtions inside a while loop,loop will run till the gameover returns true
-> check if move is valid or not else add player char into the matrix
-> check during add if gameover is true or not
-> make method gameover which will check at every move for diagonal row or col is same or not if match found return true and game will over
-> make method board print also which will print board at each move.

About


Languages

Language:Java 100.0%