Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/aslams2020/tic-tac-toe-java


https://github.com/aslams2020/tic-tac-toe-java

Last synced: about 14 hours ago
JSON representation

Awesome Lists containing this project

README

        

# Tic-Tac-Toe-Java
This project is a simple implementation of the classic Tic-Tac-Toe game using Java.
The game can be played between two players and offers a graphical user interface for an engaging user experience. The project demonstrates fundamental concepts of object-oriented programming, including classes, objects, inheritance, and polymorphism.

# Features
- Human Player Vs Computer Mode: Allows a human player to play against the computer player.

- Terminal Based Gameplay: Real-time updates and game status display.

- Winning Detection: A detects and announces the winner or a draw.

# How to Play
- The game is played on a 3x3 grid.

- Player 1 is 'X' and Player 2 is 'O'.

- Players take turns to place their marks in empty squares.

- The first player to get 3 of their marks in a row (horizontal, vertical, or diagonal) wins.

- If all 9 squares are filled and no player has 3 marks in a row, the game is declared a tie.