The game ends when no more patterns can be made by either side. The player with the highest score is the winner.
When a player cannot create any more patterns, the game ends. The player with the most points wins.