by MercAngel » Sun Jul 30, 2006 8:00 pm
ok rember in the age this is 51X51 but here i am going to use 11x11
the maze 0 are walls 1 is the path
row 1 and 11 do not need to be stored
00000000000
01111111110
01000000010
01110101111
00000101000
01111111010
01000000010
01110111110
00010100010
11111101110
00000000000
in Python it is stored like this
[[0,0,0,0,0,0,0,0,0,0,0],[0,1,1,1,1,1,1,1,1,1,0],[0,1,0,0,0,0,0,0,0,1,0],[0,1,1,1,0,1,0,1,1,1,1],[0,0,0,0,0,1,0,1,0,0,0],[0,1,1,1,1,1,1,1,0,1,0],
[0,1,0,0,0,0,0,0,0,1,0],[0,1,1,1,0,1,1,1,1,1,0],[0,0,0,1,0,1,0,0,0,1,0],[1,1,1,1,1,1,0,1,1,1,0],[0,0,0,0,0,0,0,0,0,0,0]]
this is how i was thinking to setup the SDL
VAR BOOL Walls2[11]
VAR BOOL Walls3[11]
VAR BOOL Walls4[11]
VAR BOOL Walls5[11]
VAR BOOL Walls6[11]
VAR BOOL Walls7[11]
VAR BOOL Walls8[11]
VAR BOOL Walls9[11]
VAR BOOL Walls10[11]
isee this type used in other SDL files but can not find out how to set or read them in python
Rember what i am useing if 51X51
One more thing is ther any way to turn of the makers in an age, when i ran the first test maze some one used makers to mark the paths as they went down them.