A closer look

Gandhi's infamous obsession with nuclear weapons in the original Civilization game was caused by an integer underflow glitch. His aggression rating was set to the lowest possible number, but when the game tried to lower it further upon adopting democracy, the value looped around to the absolute maximum. Thus, the real-world champion of peaceful resistance became a terrifying warmonger eager to turn your thriving cities into radioactive glass. It is a beautiful reminder that no matter how noble your intentions are, poorly optimized code will inevitably turn you into a genocidal maniac with a bottomless stockpile of uranium