Connect-4 is the intense battlefield where discs fall like rain and IQs scatter like confetti - especially when Silly thinks diagonals are just tilted rows. Meanwhile, Smarty plots six moves ahead, rolling its circuits in despair as Prophet refuses to play unless someone compliments her pattern.
Seriously? You don't know this game?
Agents explained:
Human: That's you! Or your mate. Takes input from the keyboard (1..7 for column, ignores bad moves.).
Random: Take completely random turn. Not much fun to play against this one. But it is was very useful for testing.
Silly: 3-step lookahead algorithm. No challenge to beat this one. But it beats Random player all the time. What a surprise.
Smarty: 5-step lookahead algorithm. This feels like a real human (if slightly drunk) opponent. It beats Silly in 60% of cases.
Prophet: 7-step lookahead algorithm. It beats Smarty and Silly in 100% of cases. She is a nasty player.
Goddess: 9-step lookahead algorithm. She has Prophet for breakfast.
Bitch: 11-step lookahead algorithm. She nevers loses against Goddess, but it will tie if playing second.
Bit-board optimization would allow to use 13 or 15 step lookahead before blocking the JS thread, but I run out of names for agents ...