Skip to content

Boithlomolo/TicTacToeGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Tic-Tac-Toe Game

This is a simple Tic-Tac-Toe game developed using Java Swing. The game is for two players, 'X' and 'O', who take turns marking a 3x3 grid. The objective is to be the first player to get three of their marks in a row (horizontally, vertically, or diagonally).

Features

  • Two-player Mode: Player 'X' and player 'O' alternate turns.
  • Win Detection: The game automatically detects when a player has won.
  • Draw Detection: The game will declare a draw if all the cells are filled with no winner.
  • New Game Option: Start a new game at any time from the menu.
  • Highlight Winning Line: The winning combination is highlighted in blue.

How to Run

Prerequisites

  • Java Development Kit (JDK) 8 or higher installed on your system.

Steps to Run:

  1. Clone the repository:
    git clone <repository-url>
    cd <repository-directory>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages