Skip to content

MitchellGray100/Connect4

Repository files navigation

Connect4

MitchellGray100@gmail.com https://github.com/MitchellGray100/Connect4

JavaFX Connect4 Game. Local 2 Player or 1 Player (With AI). It's Connect4.

As a personal project I created a JavaFX representation of a Connect4 game. The game displays each move and displays when the game is over. The Gameover Text is red, yellow, or orange based on who won. The AI could've used a Minimax algorithm (Like my Chess project) but this would lead to a tie or a win for the AI every single time. This would not be very enjoyable for someone just playing for fun. Instead, the AI assigns points to good behaviors.



Play

To Play, just download the .exe file: https://github.com/MitchellGray100/Connect4/raw/main/Connect4.exe.
or Play with sound by downloading the project: https://github.com/MitchellGray100/Connect4/archive/refs/heads/main.zip and running Connect4.exe in the EXE folder.


If you gen a JNI error, make sure to download java.




Images

The Title screen.
One Player mode is for playing against the AI and Two Player mode is for playing against another player on the same machine.
Image of The Title Screen

The game with no pieces placed yet. Image of empty board


GIFs

Sample Game Play.
GIF of game being played

Game Play against AI for mobile users.
GIF of game being played