Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

`if not... else if not...` Sounds like you could simplify that a lot by reversing the order of those statements:

http://i45.tinypic.com/votkcw.jpg



That version will run into walls, turn left when it shouldn't, etc.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: