Skip to main content
3 of 4
added 17 characters in body
TFeld
  • 19.9k
  • 3
  • 20
  • 63

Python 2, 79 78 73 bytes

n,d=input()
c='|\/'[d]
i=n
while i:print' '*(n-i*d)+c,[' ',c][i%2],c;i-=1

Try it online!

Takes [1,0,-1] for [north-west, north, north-east]

TFeld
  • 19.9k
  • 3
  • 20
  • 63