Question: Using JavaFX write a Java program to implement Tic Tac Toe game. Tic Tac Toe is a game for two players, X and O, who
Using JavaFX write a Java program to implement Tic Tac Toe game. Tic Tac Toe is a game for two players, X and O, who take turns marking the spaces in a 33 grid. The player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row wins the game. For example, X wins as below.

The Java program also records the winning history (how many X wins and how many O wins). The winning history is saved into a file. Whenever the game starts, the history will be loaded. There is a Reset button to reset the history (X wins = 0 and O wins = 0). There is also a Quit button to allow the users to quit the game. GUI example looks like:

Problem Description:
The Java program must allow users to take turn to play X or O. X plays first. It must be able to check the winner. It must save and show the winning history. It allows users to reset the winning history
X wins : 2 O wins : 3 w Draws : 0 Reset Quit
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
