Connect 5 AI
Uses a standard minimax algorithm (with 2 plys/moves into the future) to evaluate the current best move for a game of connect 5.
User is black and computer is white always.
Use the arrow keys to select a place to put your black piece
Press enter to place a piece
Press R to restart
Inspiration from, and basic reference: