cazad3011 / tic-tac-toe-game

A console based tic-tac-toe game in java using minimax algorithm.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TIC-TAC-TOE GAME

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.

DIRECTORY STRUCTURE

App.java is the main class which starts the game. All java files are inside tic-tac-toe-game directory.

PREREQUISITE

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.

HOW TO COMPILE

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.

HOW 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:

Console Image

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

About

A console based tic-tac-toe game in java using minimax algorithm.


Languages

Language:Java 100.0%