Good Luck solutions

Good Luck was solved using PHP by 2 contestants. Solution sizes: average 1908 bytes (shortest: 1089; longest: 2728).