Tic Tac Toe Game


Language: Java
Author: Shubhanshu Jha
Date: 27/07/2022
Version: 1.0
Description: This is a Tic Tac Toe game written in Java. The game is played on a 3x3 grid. The user can choose to play as X or O.
             The first player to get three in a row wins. Here the user can play against the computer with three different levels of
             difficulty [easy, medium, hard] where the hard level is the most difficult level where the computer is unbeatable and
             it is achieved by using the MiniMax algorithm.
             The user can also play against another user or can watch the computer play against itself.

How to play the game?

  1. Compile the Main.java file using the command javac Main.java in the terminal.
  2. Run the program using the command java Main in the terminal.
  3. The game will start automatically.

Based on the options displayed, the user can choose the mode of the game, i.e. play against the computer or play against another user. And, if the user is playing against the computer, then the user can choose the level of difficulty as well.