- Extract the zip file containing all the Java files to a specified location.
- Please start the terminal (Mac) or command prompt (Windows).
- Go to the specified location where all the .java files are located.
- In the command terminal, type "javac *.java".
- After doing the specified task in 4, type "java Server" in the Command terminal.
- Open two new command prompts. The two command prompts serve as two separate players.
- In each of the two command prompts, go to the specified location where all the .java files are located and type "java Main" in the command terminal.
- Play the game
- cd *location where .java files located*
- javac *.java
- java Server
- Open new Command prompt
- cd *location where .java files located*
- java Main
- Open new Command prompt
- cd *location where .java files located*
- java Main
- Play the game
- Please keep O.png and X.png file in the same location as the .java files if you are using command prompt. It is crucial for the correct GUI implementation of the game.
- Please keep O.png and X.png file in the root directory folder if you are running it with IntelliJ. It is crucial for the correct GUI implementation of the game. Make sure to turn on "Allow parallel run" for the Main class. You can do this by going to Run>Edit Configurations>Allow parallel run.