Dungeon Master was distributed on a floppy disk that had a specific weak sector that would randomly return 1 or 0 when read. The game would periodically read that sector and, if it returned the same bit x times in a row, it would kill your entire party. When copying the disk, the original would read either 1 or 0 and then write that value in that specific sector, meaning the copy would always return 1 or 0.
The check was random, hidden in graphics files, and this, combined with some obfuscation and some more copy protection, meant it took over a year for the game to get cracked. A record at the time.
The dev claimed that the time and effort spent on the protection scheme was worth it as it allowed the game to keep selling through typical sales channels for much longer than usual.

