Originally I wanted to write the code to move one chip from being in a square to being in another square. This requires making direct changes to the HTML with JavaScript.
However, I found that we needed to be able to evaluate the squares better, and in working on the function squareContains (which I ended up changing to evalSquare) I found a few things I needed to change.
Instead of accomplishing my intended task, I basically created an interim task, and that's what I've done here. I'll explain my process in the code comments of this Pull Request.
Originally I wanted to write the code to move one chip from being in a square to being in another square. This requires making direct changes to the HTML with JavaScript.
However, I found that we needed to be able to evaluate the squares better, and in working on the function
squareContains
(which I ended up changing toevalSquare
) I found a few things I needed to change.Instead of accomplishing my intended task, I basically created an interim task, and that's what I've done here. I'll explain my process in the code comments of this Pull Request.