Deciding about relaxing field lines

Try these out, learning how the field lines show where there is a force.

Attracting and repelling bar magnets

Attracting and repelling coils

If there is electric current in a coil then there the magnetic field around it is just like a bar magnet. So the same thinking can predict whether pairs of coils will attract or repel.