Show HN: C4 – Connect Four, with AI
kenrick95.github.io
kenrick95.github.io
The next offering is starting soon:
https://www.edx.org/course/artificial-intelligence-uc-berkel...
I also expect to build some of these at http://ai-maker.com/
Thanks for sharing it and congratulations!
It's really a great game for playing with AI strategies since it's so simple. You can borrow our game runner and write your own: https://github.com/smilliken/aigames/tree/master/connect-fou...
You can use any language since it just talks over pipes. There's a few bots in there you can play against.
Edit --
Github is here: https://github.com/RyanMarcus/connect4
Looks like my AI beats your AI. ;)
For instance, on your first go, drop in column 0. Then, the AI drops in columns 1, 2, 3, 4, leading to this:
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. X X X . . .
X O O O O . .After trying it now, the AI actually tries harder to beat you, and my previous method is not effective anymore.