Skip to content

Marwan8A/Tic-Tac-Toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

⭕ Tic Tac Toe

A Java Swing implementation of the classic Tic Tac Toe game featuring an interactive GUI, menu controls, keyboard shortcuts, and a live scoreboard.

Java Java Swing GUI App Completed


Overview

Tic Tac Toe is a desktop-based Java application that recreates the classic two-player game using Java Swing. The program provides a clean graphical interface where players can take turns placing X and O, while the game automatically detects wins, ties, and updates the scoreboard in real time.

This project highlights core object-oriented programming principles, event-driven programming, and GUI development in Java.


Features

  • Interactive 3x3 Tic Tac Toe board
  • Two-player gameplay
  • Automatic win detection
  • Tie detection
  • Live game status display
  • Scoreboard tracking:
    • X wins
    • O wins
    • ties
  • Menu options for:
    • starting a new game
    • resetting the scoreboard
    • quitting the application
  • Keyboard shortcuts for faster interaction
  • Color-coded moves for better visual feedback

Demo Flow

The application follows this workflow:

  1. Launch the game window
  2. Player X starts first
  3. Players alternate turns by clicking empty cells
  4. The game checks for:
    • a winner
    • a tie
  5. The scoreboard updates automatically
  6. Users can start a new game or reset the score from the menu

Tech Stack

  • Language: Java
  • Framework: Java Swing
  • Core Concepts Used:
    • object-oriented programming
    • inheritance
    • event handling
    • GUI design

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages