This is a console based two player tic-tac-toe game which has been designed in Java programming language using Minimax algorithms. In this game, first player is considered as Computer and another one is User.
App.java is the main class which starts the game. All java files are inside tic-tac-toe-game directory.
Java Standard Edition Development Kit 8 (or JDK 8) or upgraded versions of JDK 8 should be pre-installed on local machine to compile and run this game.
Type the following commands in terminal to compile the code.
javac Player.java Constant.java Cell.java Board.java Game.java App.java
After compilation, the game is ready to run.
Type the following commands to run this game.
java App
When this game starts running , it displays a game board with some options to play this game in the console. A sample game board has been shown below:
This package is available on an "as is" basis. I do not say or imply that it will be useful for whatever you want to do with it. It may also contain bugs, and I assume no responsibility for any potential problems associated with its use. However,I have tried to fix almost bugs of my program. It has been tested on java version "1.8.0_92" on an Intel(R) Core(TM) CPU (i5) with a 2.20 GHz processor and 8.00 GB of RAM, running on the Windows 10 operating system.
Email id: cazad3011@gmail.com