In the Algorithm Design Manual, Stephen Skiena entertains, edifies and educates his readers with so called “War Stories”, that is, interesting implementation challenges from his own experience.
The first War Story is Psychic Modeling, an attempt to exploit “precognition” to improve the chances of winning the lottery.