Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aslams2020/tic-tac-toe-java
https://github.com/aslams2020/tic-tac-toe-java
Last synced: about 14 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/aslams2020/tic-tac-toe-java
- Owner: aslams2020
- Created: 2024-05-30T13:25:41.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-05-30T18:07:18.000Z (6 months ago)
- Last Synced: 2024-05-31T16:16:24.982Z (6 months ago)
- Language: Java
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.