Skip to content

TheStevenDev/SerializedTicTacToe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic-Tac-Toe in Java against Bot

Features

  • Play against an intelligent Tic-Tac-Toe bot.
  • View your game statistics.
  • Replay the game.
  • Save and open games using serialization.

Getting Started

  1. Clone the repository.
  2. Open the project in your preferred Java IDE.
  3. Compile and run the Main class.

How to Play

  1. The game board consists of a 3x3 grid.
  2. Each cell on the grid is represented by a number from 1 to 9.
  3. To make a move, enter the number corresponding to the cell where you want to place your symbol (X or O).
  4. The bot will automatically make its move after you.
  5. The game continues until one player wins or the game ends in a draw.
  6. Enjoy playing Tic-Tac-Toe against the bot!

Game Statistics

The game keeps track of the following statistics:

  • Total games played
  • Games won by the player
  • Games won by the bot
  • Games ended in a draw

Replay Game

After finishing a game, you have the option to replay it. This allows you to analyze your moves and strategies.

Save/Open Games

You can save your current game or open a previously saved game using serialization. This feature allows you to continue a game at a later time.

Releases

No releases published

Packages

No packages published

Languages