Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Revisions

2 of 3
added 610 characters in body
user avatar
user avatar

Wren, 98 bytes

A naive approach

Fn.new{|a,b,c,d|" "*3+"&|\\/"[a]+"\n"+" "*(1-d)+"("*(d+1)+"^.oO"[b]+"v.oO"[c]+"^.oO"[b]+")"*(d+1)}

Try it online!

Wren, (削除) 148 (削除ここまで) 144 bytes

An even worse solution, yet I'd like to share it. Does a bunch of replaces on the specified string

Fn.new{|a,b,c,d|" S\nW(EME)w".replace("S","&|\\/"[a]).replace("W"," ("[d]).replace("w"," )"[d]).replace("E","^.oO"[b]).replace("M","v.oO"[c])}

Try it online!

user85052

AltStyle によって変換されたページ (->オリジナル) /