Quest 1: Whispers in the Shell

  • Keep top level comments as only solutions, if you want to say something other than a solution put it in a new post. (replies to comments can be whatever)
  • You can send code in code blocks by using three backticks, the code, and then three backticks or use something such as https://topaz.github.io/paste/ if you prefer sending it through a URL

Link to participate: https://everybody.codes/

you are viewing a single comment's thread
view the rest of the comments
[–] 1 point 1 year ago* (last edited 1 year ago) (2 children)

Short and simple Uiua solution :-)

Data ← {"Vyrdax,Drakzyph,Fyrryn,Elarzris"
        "R3,L2,R3,L1"}
Prep    ← ⊜□⊸≠@,°□⊣⟜(+1/+˜=@,°□⊢)
Present ← °□˜⊡⊜□⊸≠@,°□⊢Data⊙◌
Part₁   ← ∧(↧⊙(⊸-₁)↥0+⍥¯=@L⊙⋕°⊂°□)⊙0
Part₂   ← ∧(˜◿⊙⟜∘+⍥¯=@L⊙⋕°⊂°□)⊙0
Present Part₁ Prep Data
Present Part₂ Prep Data
Data ← {"Vyrdax,Drakzyph,Fyrryn,Elarzris"
        "R3,L2,R3,L3"}
∩(⊜□⊸≠@,)∩°□°⊟⇌Data
°□⊢∧(⍜⊏⇌⊂0◿(⧻⊃⋅∘⊙∘)⍥¯=@L⊙⋕°⊂°□)

-> "Fyrryn", "Elarzris", "Drakzyph"

  • source
  • hideshow 2 child comments