Page 1 of 1

Extensible Connect-4 game

Posted: Fri Mar 04, 2022 4:03 pm
by Schol-R-LEA
I just finished the first more-or-less working version of a Connect-4 game which can take a board size and number of tokens for a win, as well as play with either two human players, or a human and a solver AI. The solver is pretty lousy, but it works after a fashion.

I need to add a bit to the README about how to use it, which I will do when I next get a chance. Also,the current front end is entirely console based.

I do want to improve the AI, and later I want to extend it with a GUI, so any advice or comments would be appreciated.

Re: Extensible Connect-4 game

Posted: Mon May 02, 2022 2:25 pm
by Voldemort
I had a brief look at the code. Something anyone would do, simple search with some pruning. One thing to do would be to replace array based board with a bit board representation, as this saves some memory when the depth is huge. I have been looking at nuklear lately, perhaps a choice for your GUI ?