sxkosone / checkers

Game of checkers
1 stars 0 forks source link

Added some function fill-ins #15

Closed ghost closed 6 years ago

ghost commented 6 years ago

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.