TicTacToe

Tic Tac Toe Game (Java Swing)

A simple GUI-based Tic Tac Toe game built with Java Swing.
This project lets two players play Tic Tac Toe on a 3x3 grid using a modern graphical interface.

Features

How to Run

  1. Clone or download this repository.
    (Click the green “Code” button > Download ZIP, or use git clone <repo-link>)

  2. Open the project folder in VS Code, IntelliJ, or any Java IDE.

  3. Compile the code: javac TicTacToeGame.java

  4. Run the program: java TicTacToeGame
  5. Play the game:
    • Players take turns clicking empty cells to mark them ‘X’ or ‘O’.
    • The first player to align three marks in a row, column, or diagonal wins.

Project Structure

Concepts and Technologies Used


Feel free to star or fork this repository if you find it useful!