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.
Extensible Connect-4 game
- Schol-R-LEA
- Member
- Posts: 1925
- Joined: Fri Oct 27, 2006 9:42 am
- Location: Athens, GA, USA
Extensible Connect-4 game
Rev. First Speaker Schol-R-LEA;2 LCF ELF JAM POEE KoR KCO PPWMTF
Ordo OS Project
Lisp programmers tend to seem very odd to outsiders, just like anyone else who has had a religious experience they can't quite explain to others.
Ordo OS Project
Lisp programmers tend to seem very odd to outsiders, just like anyone else who has had a religious experience they can't quite explain to others.
Re: Extensible Connect-4 game
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 ?
~Voldemort~