An open API service indexing awesome lists of open source software.

https://github.com/dikshitadas/tictactoe

A Tic-Tac-Toe game built using Java Swing, allowing two players to compete in this classic game, taking turns to place 'X' or 'O' on the board.
https://github.com/dikshitadas/tictactoe

awt awt-gui board-game java java-22 java-2d-game swing-components swing-gui tictactoe-game

Last synced: about 1 month ago
JSON representation

A Tic-Tac-Toe game built using Java Swing, allowing two players to compete in this classic game, taking turns to place 'X' or 'O' on the board.

Awesome Lists containing this project

README

        

# 🎮 TicTacToe Game

A classic **Tic-Tac-Toe** game built with **Java Swing**, providing a fun and simple way to play the timeless game with a clean graphical interface.

![Java](https://img.shields.io/badge/Java-%23ED8B00.svg?&style=flat&logo=java&logoColor=white)
![Swing](https://img.shields.io/badge/Swing-Framework-orange?style=flat)



## â„šī¸ About

A **Tic-Tac-Toe** game built using **Java Swing**, allowing two players to compete in this classic game, taking turns to place 'X' or 'O' on the board.

## 🚀 Features

- âœ–ī¸ **Two-player gameplay**: Play as 'X' or 'O' with a friend.
- 🎨 **Graphical User Interface (GUI)**: Clean and interactive design using **Java Swing**.
- 🧠 **Win-checking logic**: Automatically detects when a player wins or if the game results in a draw.
- 🔄 **Restart option**: Reset the game board for a new match.

## đŸ“Ļ Installation

### 1. Clone the Repository
```bash
git clone https://github.com/DikshitaDas/TicTacToe.git
cd TicTacToe
```

### 2. Compile and Run the Game
```bash
javac TicTacToe.java
java TicTacToe
```

## 🛠 Technologies Used

| Technology | Logo |
|-------------|------|
| **Java** | ![Java](https://img.shields.io/badge/Java-%23ED8B00.svg?&style=flat&logo=java&logoColor=white) |
| **Swing** | ![Swing](https://img.shields.io/badge/Swing-Framework-orange?style=flat) |

## 🤝 Contributing

Contributions are welcome! Here's how you can contribute:

1. Fork the repository 🍴
2. Create a new branch (`git checkout -b feature/amazing-feature`) 🚧
3. Commit your changes (`git commit -m 'Add a new feature'`) 📝
4. Push to the branch (`git push origin feature/amazing-feature`) 📤
5. Open a pull request đŸ“Ŧ

## 📄 License

This project is licensed under the **MIT License**. See the [LICENSE](LICENSE) file for more details. 📃