Tap a gap between two adjacent dots to draw a line. Completing the fourth side of a box claims it for you (shown in your color) and you get to go again.
When all boxes are filled, whoever claimed the most boxes wins! The CPU plays a reasonable strategy — it avoids handing you free boxes when possible, and grabs boxes when it can.