Swinging Wild solutions

Swinging Wild was solved using PHP by 2 contestants. Solution sizes: average 2252 bytes (shortest: 1123; longest: 3389).