A simple Tic-Tac-Toe game built in Java using the Swing library for the graphical interface.
This application is a classic two-player game (X and O), played on a 3x3 board. Players take turns clicking board tiles, and the game automatically detects a winner (horizontal, vertical, and diagonal wins) as well as a tie.
- 3x3 board game with buttons representing tiles
- Automatic winner detection: rows, columns, and both diagonals
- Tie detection when all tiles are filled with no winner
- Visual highlighting of the winning line (green text on black background)
- "Reset" button appears after the game ends, allowing a new round to start
- Label showing the current player's turn and the game result
- Java
- Java AWT (graphics, event handling)
- Java Swing (GUI components: JFrame, JButton, JLabel, JPanel)
Educational project, created for learning Java programming.