Kaplansky's game or Kaplansky's n-in-a-line is an abstract board game in which two players take turns in placing a stone of their color on an infinite lattice board, the winner being the player who first gets unmarked n stones of their own color in a row, horizontally, vertically, or diagonally. It is named after Irving Kaplansky.