Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mayssemhannachi/tic-tac-toe-game-using-java
This Java code implements a text-based Tic-Tac-Toe game. It features a 3x3 board, player vs. CPU gameplay, and win/draw detection. The code uses arrays and ArrayLists to track moves, and it repeatedly asks for player input, ensuring a fair game.
https://github.com/mayssemhannachi/tic-tac-toe-game-using-java
Last synced: 22 days ago
JSON representation
This Java code implements a text-based Tic-Tac-Toe game. It features a 3x3 board, player vs. CPU gameplay, and win/draw detection. The code uses arrays and ArrayLists to track moves, and it repeatedly asks for player input, ensuring a fair game.
- Host: GitHub
- URL: https://github.com/mayssemhannachi/tic-tac-toe-game-using-java
- Owner: mayssemhannachi
- Created: 2023-10-15T19:23:59.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-15T19:25:58.000Z (about 1 year ago)
- Last Synced: 2023-10-16T18:25:30.683Z (about 1 year ago)
- Language: Java
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tic-Tac-Toe-game-using-java
This Java code implements a text-based Tic-Tac-Toe game. It features a 3x3 board, player vs. CPU gameplay, and win/draw detection. The code uses arrays and ArrayLists to track moves, and it repeatedly asks for player input, ensuring a fair game.# It features:
- A 3x3 game board.
- Player vs. CPU gameplay.
- Win and draw detection.
- Clean and organized code structure.## Getting Started
To run the game, simply execute the `TicTacToe.java` file. Follow the on-screen instructions to play the game.
## How to Play
- Enter a number (1-9) to make your move.
- The CPU makes random moves.
- The game declares a winner or a draw.## License
This project is open-source and available under the [MIT License](LICENSE).
Feel free to contribute, report issues, or make suggestions.
Happy gaming!