Skip to content

Ultimate-TicTacToe-Java/UltimateTicTacToe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


🕹️

❌ Ultimate Tic Tac Toe

CREDITS

Game description

Ultimate tic tac toe, is an extension of the taxing game of tic tac toe. Rules:

  • The game board consists of 9 game boards
  • Each game board has 9 tiles for placing a symbol.
  • Placing a token on the X (e.g. #4) requires the player to make the next move on the X (e.g. #4).
  • Players put circles or crosses in the boxes until one of them wins or there is a draw on the board.
  • The player who wins on a particular board places his symbol there.
  • Play continues until someone wins most of the boards, or there is a tie.
  • If the game on the selected board is over, the player chooses any field, on any board

Source: https://en.wikipedia.org/wiki/Ultimate_tic-tac-toe

(back to top)

Built With

This section should list any major frameworks/libraries used to bootstrap your project. Leave any add-ons/plugins for the acknowledgements section. Here are a few examples.

(back to top)

Installation

Since I had a lot of problems to fire it up in my configuration (WSL2 Ubuntu 20.04) here is how I managed to fire the project in JetBrains IntelliJ

sudo apt install openjdk-17-jre-headless
sudo apt install libgtk-3-0

I also downloaded JavaFX library version openjfx-18.0.1_linux-x64_bin-jmods (JMODS - this is very important, because we work with modular Java) and put it in the lib/ directory somewhere on my desktop.

Because of its size (about 100 MB) I did not put the library in the repository

Open the project

git clone https://github.com/Ultimate-TicTacToe-Java/UltimateTicTacToe

Open UltimateTicTacToe in IntelliJ using File -> Open.

Add the configuration Add configuration -> Application.

  • Choose openjdk-18 as the environment.

  • Select Game from the Chose main class field.

Close the configuration window. 3.

  1. add the JavaFX library

File -> Project Structure... -> Libraries -> + -> Java

In the path field, paste

<root path to project>/UltimateTicTacToe/lib/openjfx-18.0.1_linux-x64_bin-jmods/lib

Build the project

(back to top)

Backlog

  • create a smaller tic-tac-toe game board
  • add UML diagram
  • create main game board consisting of 9 smaller fields
  • handling the OnClick event when the player presses the mouse button on a given field
  • check if the player has won the game in a given field
  • check if the player has won the game on the main board
  • add new design
  • reset button
  • exit button
  • adding appropriate notifications during the game and in case of a player victory
  • notifications in console are done
  • add design using SceneBuilder
  • testing the game
  • network implementation of the game (optional)

Class diagram

(back to top)

About

An extension of a popular board game created in pure JavaFX.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •