How to gamble if you must – the mathematics of optimal stopping | Hacker News Reader