Multidimensional arrays and declaration
BlitzMax Forums/BlitzMax Beginners Area/Multidimensional arrays and declaration
| ||
Field AdjacentMove:Int[6][3] = [[0,-1,-1],[1,-1,0],[1,0,1],[0,1,1],[-1,0,1],[-1,-1,0]] why doesnt ths work? I'm sure its a syntax thing, isn't it? Smurftra |
| ||
try it like this: Field AdjacentMove:Int[][] = [[0,-1,-1],[1,-1,0],[1,0,1],[0,1,1],[-1,0,1],[-1,-1,0]] |
| ||
Deleted |