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 Answer

added 36 characters in body
Source Link
user85052
user85052

Wren, 98(削除) 98 (削除ここまで) 90 bytes

A naive approach. I could have used a lookup table, it golfs out 8 bytes.

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

Try it online! 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!

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!

Wren, (削除) 98 (削除ここまで) 90 bytes

A naive approach. I could have used a lookup table, it golfs out 8 bytes.

Fn.new{|a,b,c,d|" "*3+"&|\\/"[a]+"\n"+" ("[d]+"("+"^.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!

added 610 characters in body
Source Link
user85052
user85052

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!

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, 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!

Source Link
user85052
user85052

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!

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