Cool! I think I would have liked it more with shorter names by default, but that's nothing really.
Ended up with a quick solution to all problems so I can go back to work. Please forgive me
function draw_checkerboard(board) { var res = document.querySelectorAll('#goal-checkers-group rect'); var len = Math.sqrt(res.length); for (var row = 0; row < len; row++) { for (var col = 0; col < len; col++) { board[row][col] = res[col + row * len].className.baseVal; } } }
Edit: forgot that col/row size wasn't fixed
Edit 2: > Well, that's the end of this small journey.
Not that small of a journey actually, quite a lot of interesting puzzles. Good job!