Gomoku is a 2-players game played on a square grid. On a players turn, corresponding sign (an X or an O) is put into a square. A player wins the game when an unbroken row (horizontally, vertically or diagonally) of 5 signs is reached.