Hacker News new | past | comments | ask | show | jobs | submit login

Good point! That adds a lot of nuance. With several eggs, if you drop one egg and it doesn't break, you have the option of postponing the pick-up until later or leaving it on the ground altogether. Let me think about it.



I had a quick go at it using memoized minimax search. I assumed that picking up any dropped eggs is automatic when you're on the ground floor, but it would also be easy to model it as an action.

https://gist.github.com/3157191

Let me know if this is what you had in mind.


Can you see if the egg is broken without going down? I guess you're assuming so.




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

Search: