Here we'll create supplementary features that'll bring our user interface alive.
Create a button that restarts the game when clicked.
Displays "Restart" if game still ongoing.
Displays "Play again?" if and when game is over.
Create a display element that shows the result of the game when it is over. Either congratulates winner or declares draw.(This feature was built out in the last pull request).
If applicable, clean up the user interface such that it'll be more presentable and easier to use for users.
Here, we'll flesh out the features of the game allowing for a two-player mode to be played.
Allow players to click on the game board in order to make their respective moves.
There are only two players, one placing X and the other placing O.
Players alternate turns. If player X is done with their move, for example, the next click on an open tile should make a drawing of an O symbol, not an X.
Build logic that checks for when the game is over. Such is the case if either of the following are true:
Either player has marked 3-in-a-row.
No 3-in-a-rows are present but there are no more legal moves that can be made (board is full).