Connect Four with Smart AI Player
WyattGeorge

Try to beat the AI! This is a version of Connect Four with a smart AI player that makes intelligent moves.

The AI evaluates each possible move and picks what it thinks is the best one, resulting in a hard (but not impossible!) to beat adversary.

https://repl.it/@WyattGeorge/ConnectFour

-Update: Changed characters to be clearer, console is now cleared after each move
-Update: Fixed a bug that prevented the AI from picking a column if it was guaranteed to lose

You are viewing a single comment. View All
RaiinWing

https://storage.googleapis.com/replit/images/1530987184467_14c573473cec68582d925f1d80a2ce97.pn
I was going to finally win :(

WyattGeorge

@RaiinWing Ah thanks for finding that. Sorry you didn't get your win! I think I've fixed it, but I don't have the time to really test it right now. If anybody else gets something like that, please let me know!