#!/bin/csh
#!/bin/csh -xv
#!/bin/csh -f
#!/bin/csh -fvx
#Towers of hanoi, a recursive program
setenv COMMAND $0
set path=($path .)
if ( $1 == 0 ) then
	exit 0
else
	@ n = $1 - 1
	$COMMAND $n $2 $4 $3
	@ t = $n + 1
	echo "Move disk $t from $2 to $3"
	$COMMAND $n $4 $3 $2
endif
