Take turns dropping discs into the columns. First to line up four in a row — across, down or diagonally — wins.
Hard searches about ten moves ahead with alpha-beta pruning in the background; Medium looks four moves ahead. Undo takes back your last move and the computer's reply.