|
I think that someone needs to make a 3d program that acts like this:
0
00 000000000000000000000000
0 0
0 0
0 0
0 0
0 0
0 0
000000000000000000000000000
It could use a list for the data and wall height, and could use another list to do directions. The first list would be in order, but the second list would match up with the dimmensions +2. It would have the (start location x) and (start location y) extra in the second list. The one above would be like this with L1 and L2 as the two lists.
The second list would then record movements like this:
8 1 2
7 0 3
6 5 4
@ = location
. = empty
0 = wall of various height
x= not used in list1 but in list 2
L1={x ,x ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0}
L2={3 ,1 ,0 ,4 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,5 ,5 ,5 ,5 ,5 ,5 ,5 ,7 ,7 ,7 ,7 ,7 ,7 ,7 ,7 ,7 ,7 ,7 ,7 ,7 ,7 ,7 ,7 ,7 ,7 ,7 ,7 ,7 ,7 ,7 ,7 ,7 ,7 ,7 ,1 ,1 ,1 ,1 ,1 ,1 ,1 ,3 ,2}
..0........................
00.000000000000000000000000
0.........................0
0.........................0
0...........@.............0
0.........................0
0.........................0
0.........................0
000000000000000000000000000
If you understand that, try to make a program. If not(or so) just comment
|