RHIT-XPrize / rhit-xprize-blocksworld

0 stars 0 forks source link

Fixed Scoring When Resizing Windows #79

Closed Lewis-Kelley closed 6 years ago

Lewis-Kelley commented 6 years ago

I decided to pull scoring out into its own file, scoring.js, and put that under test. The big fix was to use the percentage positioning rather than the pixel positioning for measuring distances.

I'm really not a fan of how the score is calculated. You can look at the code to see what's going on, but suffice it to say that:

I also must admit that I wrote the tests to match the numbers that the program spit out... so that's also not ideal.