Java project
In a game of tic-tac-toe, two players take turns marking anavailable cell in a 3 x 3 grid with their respective tokens (eitherX or O). When one player has placed three tokens in a horizontal,vertical, or diagonal row on the grid, the game is over and thatplayer has won. A draw (no winner) occurs when all the cells on thegrid have been filled with tokens and neither player has achieved awin. Create a program for playing tic-tac-toe.
The program prompts two players to enter an X token and O tokenalternately. Whenever a token is entered, the program redisplaysthe board on
OR
OR