Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic-Tac-Toe in Java

A simple Tic-Tac-Toe game built in Java using the Swing library for the graphical interface.

Description

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.

Features

  • 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

Technologies

  • Java
  • Java AWT (graphics, event handling)
  • Java Swing (GUI components: JFrame, JButton, JLabel, JPanel)

Author

jupikk

License

Educational project, created for learning Java programming.

About

Really simple Tic Tac Toe game built with Java.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages