players in code fragments and we show sample output in figure note that this code is just for maintaining the tic-tac-toe board and registering movesit doesn' perform any strategy or allow someone to play tic-tac-toe against the computer such program would make good project in class on artificial intelligence code fragment simplecomplete java class for playing tic-tac-toe between two players (continues in code fragment