Add An Extra Layer To My Js Generated "checkers" Board
I have the following fiddle (click the 1 to see the board): http://jsfiddle.net/mauricederegt/vNpYe/1/ This part of the code: this.getHTML = function () { return '
Solution 1:
Note that your layers for level 1 are all on the same "level"...
See the corrected version below:
var levels = [
[ //level one
[//layer one of level one
[1, 2, 1],
[0, 0, 0, 0, 0, 0],
[2, 1, 2],
[0, 0, 0, 0, 0, 0],
[1, 2, 1],
[0, 0, 0, 0, 0, 0]
],
[ //layer one of level one
[0, 3, 4],
[0, 0, 0, 0, 0],
[0,4,3],
[0, 0, 0, 0, 0]
]
],
[ //level two
[//layer one of level two
[1,2,0,1,2,1],
[1, 2]
]
]
];
Post a Comment for "Add An Extra Layer To My Js Generated "checkers" Board"