A classic Tic-Tac-Toe game reimagined with a modern, dark-themed Java Swing GUI.
- 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.
- Java Development Kit (JDK) 8 or higher.
From the project root directory:
javac TicTacToe/*.javaAfter compiling, run the following command from the project root:
java TicTacToe.GuiGame- Launch the game.
- Enter the desired Grid Size (e.g., 3 for standard Tic-Tac-Toe).
- Enter the Winning Condition (e.g., 3 to match 3 in a row).
- Click on the grid to place your X.
- Try to beat the Computer (O)!