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

Nice. I didn't realize you could parameterize the conditionals so I did this (bumps into walls):

while (true) do if(wall ahead) then turn left else move forward turn left if(wall ahead) turn right



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

Search: