Classic noughts‑and‑crosses built with JavaFX.
View Demo · Report Bug · Request Feature
This JavaFX implementation brings the timeless game of Tic‑Tac‑Toe to desktop. Two local players alternate turns, marking X or O on a 3 × 3 grid until one creates a line horizontally, vertically, or diagonally—or the board fills for a draw.
| Key | Action |
|---|---|
| Left Arrow | Move cursor left |
| Right Arrow | Move cursor right |
| Down Arrow | Move cursor down |
| Enter / Space | Place mark |
(W A S D navigation works too.)
macOS & Windows supported (tested on Java 21, Gradle 8).
# 1) Clone the repo
git clone https://github.com/bjucps209/group-project-team-jd.git
cd group-project-team-jd
# 2) Build & run (macOS/Linux)
./gradlew clean run
# Windows PowerShell
.\gradlew.bat clean rungradle init --type java-application --dsl groovy --package app --test-framework junit-jupiter --use-defaults --overwrite gradle clean buildgradle runplugins {
id 'application'
id 'jacoco'
id 'org.openjfx.javafxplugin' version '0.1.0'
}javafx {
version = "23.0.1"
modules = [ 'javafx.controls', 'javafx.fxml', 'javafx.media' ]
}
