Five in a Row is an abstract strategy board game and is also called Gomoku, Gobang. It is traditionally played with go pieces (black and white stones) on a go board (19x19 intersections); however, because once placed, pieces are not moved or removed from the board, gomoku may also be played as a Paper and pencil game.
Black plays first, and players alternate in placing a stone of their color on an empty intersection. The winner is the first player to get an unbroken row of five stones horizontally, vertically, or diagonally.
The origin of the Five in a Row seems to be from China. The name "Gomoku" is from the Japanese language, in which it is referred to as gomokunarabe. Go means five, moku is a counter word for pieces and narabe is often associated with these kind of games, meaning something akin to lining things up