The first person to get either five stones in a row or five captures is the winner. Captures are made when you place two of your own pieces on either side of two adjacent opponent pieces. The picture on the right demonstrates this. The little blue pair in the corner is PenteAI showing how many pieces have been taken. Therefore, when five blue pairs are shown, red has won.
Takes can occur in any direction, including the diagonals.
When you start PenteAI, a game is started automatically. Double-click on a space to make a move. PenteAI will inform you when the game has been won. You can select the players in the new version, too. You can have a human vs. human match, human vs. computer, or computer vs. computer.