Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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.

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!