Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Modern Java Tic-Tac-Toe

A classic Tic-Tac-Toe game reimagined with a modern, dark-themed Java Swing GUI.

Features

  • Modern User Interface: Sleek dark charcoal background with neon cyan grid and glowing markers.
  • Dynamic Grid Size: Choose any grid size from 3x3 up to 20x20.
  • Custom Win Conditions: Define how many markers in a row are needed to win (e.g., 5 in a row on a 10x10 grid).
  • Smart Visuals: Winning lines are clearly highlighted, and the game offers a polished "Play Again" experience.
  • Single Player: Play against a computer opponent.

Prerequisites

  • Java Development Kit (JDK) 8 or higher.

How to Compile

From the project root directory:

javac TicTacToe/*.java

How to Run

After compiling, run the following command from the project root:

java TicTacToe.GuiGame

How to Play

  1. Launch the game.
  2. Enter the desired Grid Size (e.g., 3 for standard Tic-Tac-Toe).
  3. Enter the Winning Condition (e.g., 3 to match 3 in a row).
  4. Click on the grid to place your X.
  5. Try to beat the Computer (O)!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages