|
Post by rosh16 on Jun 10, 2002 18:14:25 GMT
Hey I am in a little bit of a bad situation. I have a project that i have to do that uses 2d arrays , for next loops, sub routines and all that good stuff. Well i need to make a maze and i dont know exactly how to do it. I took this class becuase my grade was good and i didnt know what it was, so now i am in big trouble. if i dont do this project i will fail the class and that CAN NOT happen at all! so if someone can help me talk to me that would be greatly appreciated, ;D thanks rosh. here is what i have so far: CLS : RANDOMIZE TIMER: SCREEN 12 DIM DECK(25, 25) GOSUB border GOSUB MAZE GOSUB array END array: LOCATE 1, 1 FOR row = 1 TO 25 FOR col = 1 TO 25 PRINT DECK(row, col); NEXT col PRINT NEXT row RETURN border: FOR X = 1 TO 25 DECK(1, X) = 2 DECK(25, X) = 2 DECK(X, 1) = 2 DECK(X, 25) = 2 NEXT X RETURN MAZE: FOR X = 5 TO 10 DECK(5, X) = 6 DECK(10, X) = 6 DECK(X, 5) = 6 DECK(X, 10) = 6 NEXT X RETURN
|
|
Ziggi
Full Member
Posts: 87
|
Post by Ziggi on Jun 13, 2002 0:57:17 GMT
From your program looks like you printing only numbers.
Try to translate them in graphics format like rows to "-" and coluns to "|" and where they marge to "+"
|
|