RainerZ/Connect4

Connect4 (Score4, Vier in einer Reihe, Vier gewinnt) game in Java/JavaFX and minimax AI

★ 0Forks 0JavaGitHub ↗Compare
connect4gamegame-aijavafxminmaxminmax-algorithmminmax-alpha-beta-pruningscore4vier-gewinnt

README

Connect4

This repo is kept for historical reasons. Check out the new Rust version with support for LLM players on https://github.com/RainerZ/Connect4-rs.

Connect4 (ScoreFour, Vier gewinnt) game implementation in 600 lines of code in Java with JavaFX gui. Beat it !

GUI inspired by AlmasB JavaFX tutorials. AI algorithm (minmax with alpha-beta pruning) inspired by C'T 10/2014 Denkmaschine by Hajo Schulz.

Starting tree depth is 10.

VM Arguments: --module-path /.../javafx-sdk-15.0.1/lib --add-modules=javafx.controls

Contributors

RainerZ

Issues