In a game of Five-In-A-Row, players (X and 0) alternate in placing their tokens in an empty square of an infinite grid. The winner is the first player to get an unbroken row of five tokens horizontally, vertically, or diagonally.
An example of a winning position:
