https://github.com/thestevendev/serializedtictactoe
Serialized Tic Tac Toe Game in Java
https://github.com/thestevendev/serializedtictactoe
games java javaserialization serialization tictactoe
Last synced: 12 months ago
JSON representation
Serialized Tic Tac Toe Game in Java
- Host: GitHub
- URL: https://github.com/thestevendev/serializedtictactoe
- Owner: TheStevenDev
- Created: 2023-05-16T11:35:10.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-16T11:40:42.000Z (almost 3 years ago)
- Last Synced: 2025-05-14T10:22:40.240Z (12 months ago)
- Topics: games, java, javaserialization, serialization, tictactoe
- Language: Java
- Homepage:
- Size: 12.7 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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
- Clone the repository.
- Open the project in your preferred Java IDE.
- Compile and run the
Mainclass.
How to Play
- The game board consists of a 3x3 grid.
- Each cell on the grid is represented by a number from 1 to 9.
- To make a move, enter the number corresponding to the cell where you want to place your symbol (X or O).
- The bot will automatically make its move after you.
- The game continues until one player wins or the game ends in a draw.
- 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.