Hello!
I'm currently programming a Connect 4 Game with JAVAFX and I'm struggling a bit with the AI and my Game restart method.
Somehow my AI is doing "random" moves and isn't really trying to win.
If you restart the game, it clears the board, but your clicks on the rectangles strangely don't change anything.
Trying to fix the restart, I've thought about rewriting some methods and being able to restart the stage like shown here:
My project is on github: https://github.com/jgrnrt/Connect4
Thank a lot in advance,
Jere
I'm currently programming a Connect 4 Game with JAVAFX and I'm struggling a bit with the AI and my Game restart method.
Somehow my AI is doing "random" moves and isn't really trying to win.
If you restart the game, it clears the board, but your clicks on the rectangles strangely don't change anything.
Trying to fix the restart, I've thought about rewriting some methods and being able to restart the stage like shown here:
How to restart a JavaFX application when a button is clicked
I went through almost every post here regarding the matter but most of them doesn't explain what to do properly. To the question: I created a javaFX application, a dice game, human player vs. com...
stackoverflow.com
My project is on github: https://github.com/jgrnrt/Connect4
Thank a lot in advance,
Jere