AR
FR

Tic-tac-toe

Tic-tac-toe, against a friend or the computer.

Type
Desktop game
Context
Solo project, BUT year 1
Year
2025
Technologies
Java, JavaFX, FXML, CSS
A game in progress, showing whose turn it is

A game in progress, showing whose turn it is

A tic-tac-toe game in JavaFX, built on my own for the graphical interfaces course. You play against a friend or the computer, with custom names and a choice of who starts: player 1, player 2 or at random.

On normal difficulty the computer plays at random. On hard, it wins whenever it can, otherwise blocks the player, then takes the centre and the corners. The winning line turns green, and a table keeps the scores for the whole session.

  • Two players, or against the computer on two difficulty levels
  • Scores, rules and end of game in dedicated windows
  • FXML and CSS interfaces

View the code on GitHub

Settings: game mode, difficulty, names and first player

Settings: game mode, difficulty, names and first player

End of game: the winning line turns green

End of game: the winning line turns green

The score table

The score table

The rules, in a separate window

The rules, in a separate window

Next projectLinux development workstation