Throw chips on the field and line up 4 chips in a row (horizontally, vertically or diagonally). If the bot does it before you, then you have lost. If you did this before the bot, then you won.
Thanks to HarryPotterHogwarts2 for the original project Connect 4 AI.