Weiqi is a game in which two players take turns placing black and white stones on a board consisting of a grid of 19x19 lines. Stones are placed on the intersections of the grid. Once placed on the board, stones may not be moved, but stones may be removed if a stone or group of stones is surrounded on four sides by stones of the opposing color occupying all orthogonally-adjacent points. The two players place stones alternately until they reach a point at which neither player wishes to make another move; the game has no set ending conditions beyond this. At the conclusion of the game, it is scored by counting the territory encircled by each side (empty space along with captured stones) and the number of stones remaining on the board to determine the winner. Games may also be won by resignation.