The minimum number required to hit a target uses a mathematical formula in which the defender's armor class ( AC ) is subtracted from the attacker's THAC0 ( " To Hit Armor Class'0'" ) number, a simplification of 1st edition's attack matrix tables that had appeared as an optional rule in the 1st edition " DMG ".