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, the rest were mostly ties.
Prophet: 7-step lookahead algorithm. It's the maximum javascript can take before blocking the thread. It takes 0.5-1.5 seconds to calculate the move in the early stage of the match. It beats Smarty and Silly in 100% of cases. She is a nasty player.