Generate a one-path maze

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

DECLARE @i INT = 7

,@ INT=0z:PRINT STUFF(CHOOSE(@%4+1,'+- |','|  |','| -+','|  |'),3,0,REPLICATE(IIF(@%2=0,'-',' '),@i))SET @+=1IF @<@i GOTO z

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results