I hate collision detectionI spent most of the first 12 hours of the challenge working through collision detection and response. This is something I always waste that sort of time on, unfortunately. I tried a few approaches, all of which were complicated and had me trying to figure out how the innards of the pyeuclid module worked.
In the end, I retired at 11:00pm and read a book in bed. I'd resolved to try PyODE, but I knew that would probably cause more pain that it was worth.
This morning when I woke up after a good night's sleep, I had the solution. It was simple and after sitting down for about half an hour it was coded. Half an hour later it was debugged ("if you write code as cleverly as you can, then by definition you can't debug it"). Now my rabbit is bounded by fences. It can dig holes. If it digs for long enough, it goes into the hole and moves around under the ground, only to pop up elsewhere (leaving another hole).
Comments: (log in to comment)