Roam

How to make a match 3 game

A match-3 game is a grid where swapping two pieces lines up three of a kind. They clear, new ones fall, and sometimes the fall makes another match. The grid takes a weekend to build. Making it feel good on a phone is the real work.

The rules to code

Level goals turn it into a puzzle

Endless swapping is a toy. Levels add goals: reach a score in 20 moves, clear tiles under the pieces, drop items to the bottom. A goal plus a move limit makes each level a small puzzle. Bejeweled (PopCap, 2001) was score-based; Candy Crush added level goals and a map to travel.

Tools and phone tips

Play it on Roam

Create your match-3 puzzle with Roam

Pick your pieces, a goal and one special piece of your own. Play it on your iPhone and tune the levels by talking.

Try: "match-3 with candy planets, match 4 for a rocket, 20 moves to free 10 trapped astronauts"

Questions people ask

How do you make a match 3 game in Unity?

Store the board in a 2D array, check rows and columns after each swap, clear matches, drop pieces down, fill from the top and check again.

Why are match-3 games so popular?

They are easy to learn, fit short sessions on a phone, and cascades give surprise rewards the player did not plan.

How many piece colors should a match-3 game have?

Five or six is typical. Fewer makes matches too easy; more makes the board feel random.

Keep exploring