Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/sinantech/tictactoe-game-swing

⭕ Java TicTacToe Game
https://github.com/sinantech/tictactoe-game-swing

java swing

Last synced: about 2 months ago
JSON representation

⭕ Java TicTacToe Game

Awesome Lists containing this project

README

        

# Tic Tac Toe Game

This project is a simple Tic Tac Toe game developed using Java. Tic Tac Toe is a classic two-player board game where players take turns marking "X" and "O" on a 3x3 grid. The goal is to align three marks horizontally, vertically, or diagonally.

## Features

- **2 Player Game**: The game allows two players to take turns making moves.
- **Simple and User-Friendly Interface**: The game has a straightforward console-based interface that is easy to play.
- **Winner Determination**: The game automatically determines the winner when a player aligns three marks and ends the game.
- **Draw Condition**: If all cells are filled and there is no winner, the game results in a draw.

## Requirements

- Java Development Kit (JDK) 8 or later

## Installation

1. Clone or download this project to your computer:

```bash
git clone https://github.com/username/tictactoe.git
cd tictactoe
```

2. Open the project in a Java IDE (e.g., IntelliJ IDEA or Eclipse) or use a text editor to run it.

## How to Play

1. Open a terminal or command prompt.
2. Navigate to the project directory.
3. Compile and run the game with the following commands:

```bash
javac TicTacToe.java
java TicTacToe
```

4. When the game starts, take turns entering the row and column numbers to make a move.

## Game Rules

- The game is played on a 3x3 grid.
- Two players take turns marking "X" and "O" on the grid.
- The first player to align three marks horizontally, vertically, or diagonally wins.
- If all cells are filled and there is no winner, the game ends in a draw.

## Author
Sinan Can Ozer

## Contributing

If you would like to contribute, please submit a pull request or open an issue. All contributions and feedback are welcome!

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

---

For any questions or feedback, please feel free to contact me.