The number is how many bridges an island needs.Up to two bridges can join two islands.Bridges go straight and never cross.All islands must connect into one group.
Tap between two islands to build a bridge, again for a second one, and again to remove them.