Skip to main content
We good now, boyos
Source Link
Veskah
  • 4.1k
  • 14
  • 31

PowerShell, 116116 95 bytes

Big thanks to Mazzy and ASCII-Only for saving 21 bytes

param($n)(,@(" "+"____"*"+"_"*4*($x=$n/2-replace'\..*')shr1))[!($n[$n-1)]eq1] " /\ "*$x+(""+"\ /"," /\""*$x+"\"*($a=$n%2)[$n%2] "/__\"*$x+("/",""+"__\/__\")[$n%2]"*$x+"__\"*$a 

Try it online!Try it online!

Not allowing an empty line for n = 1 ate up like 1414 10 bytes. This solution is pretty brain deadpretty brain dead now much more clever with a lotminimal amount of repeated code. Banker's Rounding is still the actual devil.

PowerShell, 116 bytes

param($n)(,(" "+"____"*($x=$n/2-replace'\..*')))[!($n-1)] " /\ "*$x+(" /"," /\")[$n%2] "/__\"*$x+("/","/__\")[$n%2] 

Try it online!

Not allowing an empty line for n = 1 ate up like 14 bytes. This solution is pretty brain dead with a lot of repeated code. Banker's Rounding is still the actual devil.

PowerShell, 116 95 bytes

Big thanks to Mazzy and ASCII-Only for saving 21 bytes

param($n)@(" "+"_"*4*($x=$n-shr1))[$n-eq1] " /"+"\ /"*$x+"\"*($a=$n%2) "/"+"__\/"*$x+"__\"*$a 

Try it online!

Not allowing an empty line for n = 1 ate up like 14 10 bytes. This solution is pretty brain dead now much more clever with a minimal amount of repeated code. Banker's Rounding is still the actual devil.

Source Link
Veskah
  • 4.1k
  • 14
  • 31

PowerShell, 116 bytes

param($n)(,(" "+"____"*($x=$n/2-replace'\..*')))[!($n-1)] " /\ "*$x+(" /"," /\")[$n%2] "/__\"*$x+("/","/__\")[$n%2] 

Try it online!

Not allowing an empty line for n = 1 ate up like 14 bytes. This solution is pretty brain dead with a lot of repeated code. Banker's Rounding is still the actual devil.