I am writing Tetris in JavaScript as practice, and i am somewhat confused by the array notation that i am using. Here s the array that i have that stores all my pieces.
var pieces = [[[1,1],
[1,1]],
[[1,0],
[1,0],
[1,1]],
[[0,1],
[0,1],
[1,1]],
[[0,1,0],
[1,1,1]],
[[1,0],
[1,1],
[0,1]],
[[0,1],
[1,1],
[1,0]]];
这种说法是什么? 这种区别与仅仅说“新阵列”有何区别?
谢谢!