Skip to content

Rakesh0045/TicTacToe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic-Tac-Toe Game

Welcome to the Tic-Tac-Toe game project! This Java-based application provides an enjoyable and interactive experience of the classic Tic-Tac-Toe game, enhanced with modern features to improve gameplay and user engagement.

Features

  • Color Indication for Winning Combinations: Highlights the winning row, column, or diagonal to clearly indicate the victorious player.
  • Score Tracking: Maintains and displays the total number of wins for Player X and Player O.
  • New Game Functionality: Allows players to start a new game without resetting the scores, enabling multiple rounds in a single session.
  • Restart Button: Resets the entire game, including the scores, allowing players to start fresh.
  • Exit Button: Closes the game application.
  • Draw Detection: Identifies draw conditions when all cells are filled and there is no winner.
  • Preventing Double Clicks: Ensures that once a cell is clicked, its value cannot be changed, preventing accidental or intentional double-clicks.

Installation

  1. Ensure that JDK is installed on your system.
  2. Download the JAR file from this link https://github.com/Rakesh0045/TicTacToe/releases/download/v1.0/TicTacToe.jar
  3. Run the JAR file using the following command:
java -jar tictactoe_game.jar

How to Play

  1. The game begins with Player X. The first click will always place an X.
  2. Players take turns clicking on the cells to place their marks (X or O).
  3. The game will highlight the winning combination in color once a player wins.
  4. Use the New Game button to start a new round while keeping the scores.
  5. Use the Restart button to reset the entire game, including scores.
  6. Click Exit to close the game application.

Contributions

We welcome contributions to enhance the game further. To contribute, please fork the repository and submit pull requests with your improvements. Make sure to follow the contributing guidelines.

License

This project is licensed under the MIT License.

Contact

For any questions or suggestions, please feel free to reach out via GitHub issues.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages