shwaydogg/aMAZEing — pull request #4 by DanielleSucher (2012-03-12 01:10:19+00:00)
Title: Debugged our naive collision algorithm

Thanks for uploading the test suits!

I went through and added a set of tests for the improved line collision detector, and found and fixed a few bugs along the way while getting them to pass. We can discuss the bugs I found in more detail tomorrow morning, if you like, but in any event they're fixed now.

I'm calling this our "naive" collision algorithm because it still finds collisions where there are none because one player lifted up their mouse and thus had a break in their line. We need to change how we model sets of points server-side to keep track of that. Should be dead simple to do in the least efficient manner for now (instead of an array of points, we could have an array of arrays of points, and iterate through those appropriately), but it's high on the to-do list.