https://github.com/marcin-chwedczuk/xox
Tic Tac Toe 3x3, 4x4, 5x5 game based on alpha-beta algorithm with GUI in JavaFX.
https://github.com/marcin-chwedczuk/xox
alpha-beta-pruning javafx minimax tic-tac-toe
Last synced: 8 months ago
JSON representation
Tic Tac Toe 3x3, 4x4, 5x5 game based on alpha-beta algorithm with GUI in JavaFX.
- Host: GitHub
- URL: https://github.com/marcin-chwedczuk/xox
- Owner: marcin-chwedczuk
- License: mit
- Created: 2020-07-24T18:04:33.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-01-17T09:38:36.000Z (almost 4 years ago)
- Last Synced: 2025-01-17T07:11:13.917Z (10 months ago)
- Topics: alpha-beta-pruning, javafx, minimax, tic-tac-toe
- Language: Java
- Homepage:
- Size: 4.61 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### TicTacToe minimax

To start execute:
```
./mvnw clean install
./mvnw javafx:run -pl gui
```
Application GUI was created using JavaFX.
I tested it on both macOS and Linux.
## Contributors Guide
### SceneBuilder setup
0. Make sure to upgrade to SceneBuilder 17.0

1. Create a JAR with `GameBoard` custom control
```
./mvnw clean package
```
This will create `gui/target/gui-1.0.0-SNAPSHOT.jar` file.
2. Import JAR into SceneBuilder
Open JAR/FXML Manager:

Select "Add Library/FXML from file system" option and select
`gui/target/gui-1.0.0-SNAPSHOT.jar` file.
Select only `GameBoard` control:

If `GameBoard` does not show up on the list,
you need to check SceneBuilder version.
You have to use SceneBuilder compatible with JDK and JavaFX versions
used in the project.
3. Now you should be able to open `MainWindow.fxml` in SceneBuilder
