Skip to main content
7 of 9
removed extraneous strikethrough at behest of poster
0 '
  • 3.8k
  • 1
  • 22
  • 32

Literate Haskell, 256 bytes

.	|+xx<<<"a"<<<xx+|	.
 		
>	g x=elem '<'x&&e%x==e
>	e=tail(show 0)	
>	('<':a)%('>':b)=a%b
>	a%('<':b)=('<':a)%b
>	a%('>':b)='<':e
>	a%(x:b)=a%b{->Hi, Retina!Henry Jams?-}
>	a@(_:_)%_=a
>	a%b=e
 	
a	
b	
C	
d	
e	
f	
g	
h	
i	
j	
k	
l	
m	
n	
o	
ppppppppp	
q	3~

Try it online!

Test Driver

Satisfies

  1. The first character is a ..
  2. It contains an e.
  3. Its length is even.
  4. Its length is a perfect square.
  5. It contains an a.
  6. It contains a > character.
  7. Contains the exact string ->.
  8. Contains the exact string Hi, Retina!.
  9. The sum of the first two Unicode code points is a multiple of 5.
  10. The 10-th character is a ".
  11. The last non-empty line does not have any duplicate characters.
  12. The first line is a palindrome of length > 5.
  13. The first line is exactly 21 characters long (not including newline).
  14. It contains a ?.
  15. It contains a |.
  16. Contains a +.
  17. It is at least 28 lines long.
  18. The following characters are used five times in total: !"#$.[\] and the codepoint of the second character is less than 60.
  19. Contains Henry Jams? as a continuous substring.
  20. The last character is ~.
  21. It contains a C
  22. Each line contains a tab character.
  23. The ninth line contains at least 22 characters, excluding the newline.
  24. The tab character can't be the first character on a line
  25. The third-to-last character is a tab.
  26. There are at least 28 lines, and they are all distinct.
  27. There must be a > in the code and angle braces must be balanced

For future answers:

  • The first line is a palindrome matching .␣␣␣␣␣␣␣␣"␣"␣␣␣␣␣␣␣␣. (you are free to fill in the ␣s).
  • The second character is one of ',16;, or a tab, or one of \x04\x0e\x13\x18\x1d.
  • Its length is an even perfect square.
  • There are at least 28 lines, and all lines are distinct.
  • The ninth line must have at least 22 characters (excluding the newline).
  • The last line does not have any duplicate characters.
  • Contains the exact strings ->, Hi, Retina!, and Henry Jams?.
  • It contains |, + and C.
  • Each line contains at least one tab character, but it can't be the first character on a line.
  • !". are banned except where necessary:
    • Only ! in Hi, Retina! and the two . and two " in the first line are allowed.
  • #$[\] may not appear in the program.
  • The program ends with: tab, (whatever), ~.
  • Angle braces must be balanced
Wheat Wizard
  • 100k
  • 22
  • 282
  • 661