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)}
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])}
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)}
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])}
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)}
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])}
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)}
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])}
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)}
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)}
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])}
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)}