Connect 4

Home Portfolio About Me Contact Me





This is a high-performance Connect 4 AI engine written in Python that utilizes a Minimax algorithm to execute exhaustive look-ahead searches up to a depth of 10. To ensure the engine could handle a state space of millions of nodes, I implemented Alpha-Beta pruning to aggressively optimize the game-tree search, allowing the agent to identify guaranteed win-paths and forced draws with high efficiency. While the core engine and logic were written in Python, the agent featured in the game above has been translated into JavaScript to facilitate real-time, browser-based performance.