Skip to main content
added 175 characters in body
Source Link
JohnWells
  • 701
  • 3
  • 7

Kotlin, 148 146146 145 bytes

Removed extra parentheses for -2
Replaced raw string for -1

{l:Char->"""2XYZABC >"2XYZABC VW5DE 0VW5DE U9F   T9G   S9H   RQ5JI 2PONMLK"""0RQ5JI 2PONMLK".map{c->if(c>'@')((c-'A'+(l-'A'))%26+65).toChar() else if(c>' ')" ".repeat(c-'/') else c'\n'}} 

Try it online!Try it online!

Kotlin, 148 146 bytes

Removed extra parentheses for -2

{l:Char->"""2XYZABC  VW5DE U9F  T9G  S9H   RQ5JI 2PONMLK""".map{c->if(c>'@')((c-'A'+(l-'A'))%26+65).toChar() else if(c>' ')" ".repeat(c-'/') else c}} 

Try it online!

Kotlin, 148 146 145 bytes

Removed extra parentheses for -2
Replaced raw string for -1

{l:Char->"2XYZABC 0VW5DE U9F T9G S9H 0RQ5JI 2PONMLK".map{c->if(c>'@')((c-'A'+(l-'A'))%26+65).toChar() else if(c>' ')" ".repeat(c-'/') else '\n'}} 

Try it online!

added 43 characters in body
Source Link
JohnWells
  • 701
  • 3
  • 7

Kotlin, 148148 146 bytes

Removed extra parentheses for -2

{l:Char->"""2XYZABC VW5DE U9F T9G S9H RQ5JI 2PONMLK""".map{c->if(c>'@')(((c-'A')+'A'+(l-'A'))%26+65).toChar() else if(c>' ')" ".repeat(c-'/') else c}} 

Try it online!Try it online!

Kotlin, 148 bytes

{l:Char->"""2XYZABC VW5DE U9F T9G S9H RQ5JI 2PONMLK""".map{c->if(c>'@')(((c-'A')+(l-'A'))%26+65).toChar() else if(c>' ')" ".repeat(c-'/') else c}} 

Try it online!

Kotlin, 148 146 bytes

Removed extra parentheses for -2

{l:Char->"""2XYZABC VW5DE U9F T9G S9H RQ5JI 2PONMLK""".map{c->if(c>'@')((c-'A'+(l-'A'))%26+65).toChar() else if(c>' ')" ".repeat(c-'/') else c}} 

Try it online!

Source Link
JohnWells
  • 701
  • 3
  • 7

Kotlin, 148 bytes

{l:Char->"""2XYZABC VW5DE U9F T9G S9H RQ5JI 2PONMLK""".map{c->if(c>'@')(((c-'A')+(l-'A'))%26+65).toChar() else if(c>' ')" ".repeat(c-'/') else c}} 

Try it online!