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/

  • mykl@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    3 months ago

    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”