David Finch's solution:

http://mytsoftware.com/dailyproject/mars2.html

I added a tiny wall hit penalty to the scoring that favors later hits over soon hits. This enabled it to dodge walls to get a better score.