diff --git a/js/_checkerboard.js b/js/_checkerboard.js index cf9bbf0..97435cd 100644 --- a/js/_checkerboard.js +++ b/js/_checkerboard.js @@ -1,4 +1,5 @@ var currentColor = firstCheckerBoardColor; +var nSquaresFilled = 0; /* TODO add check for canvas dimentions (right now negative values can be inserted and a canvas will be generated, it is just necessary to add a conversion from negative to positive values. @@ -6,23 +7,44 @@ var currentColor = firstCheckerBoardColor; function fillCheckerboard() { for (var i=0; i