Skip to main content
1 of 4
Veskah
  • 4.1k
  • 13
  • 29

PowerShell, 88 bytes

param($n,$d)$x="|/\"
$n..1|%{" "*(0,$_,($n-$_))[$d]+($y=$x[$d])+("   "," $y ")[$_%2]+$y}

Try it online!

Uses [0,1,2] for North, NW, NE.

Veskah
  • 4.1k
  • 13
  • 29