One of my first programs calculated the odds of losing everything with a martingale strategy for a desired outcome and starting capital.
It needed so much capital to get to a safe enough point that it'd be better to just put the money in the bank (but thinking back, this was back before 0 interest rates, so there's another lesson there for you....)