Just updated my connect four game to using trap search, a hash table, and the added ability to learn from its own mistakes. This means that you cannot beat it the exact same way twice ever (unless you delete the hash file! )!
Its still console, I wanted to get it up and going before I spend the endless hours trying to make it into a mouse driven GUI.
The algorithm is a little different than the traditional algorithm for connect four which relies on alpha-beta pruning, but I wanted to see if I could come up with a different way. So far it plays very well and you'll be hard pressed to beat it. Unfortunately I haven't been able to find another connect four game that uses the traditional algorithm to play against mine to see how well it would do. All the ones I've found have different dimensions than my board.
Anyways enjoy! And if you have any comments, criticisms (except for complaints that its only console!), or whatever, I welcome them on this board! Also let me know how you fare, ie how often you beat it vs losing to it.