Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/sinantech/tictactoe-game-swing
- Owner: sinantech
- License: mit
- Created: 2024-07-13T18:04:27.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-07-13T18:24:01.000Z (7 months ago)
- Last Synced: 2024-11-29T20:12:51.900Z (about 2 months ago)
- Topics: java, swing
- Language: Java
- Homepage:
- Size: 8.79 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
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.