Advanced Heroquest > Warhammer Quest > Heroquest
Advanced Heroquest actually adds a whole lot of cool new rules that add depth to the combat, loot and trap content of the game. Advanced Heroquest also has rules for generating content procedurally, ensuring that the game remains dynamic for repeated play. Compared to Advanced Heroquest, the base game is a little too simple and lacking depth. Regular Heroquest also requires a dungeon master to play and every scenario is pre-programmed, so there's no system for creating your own adventures beyond the GM's discretion. It also doesn't have as much content. Warhammer Quest is like a streamlined version of Advanced Heroquest. It removes certain complexities of Advanced Heroquest rules and simplifies some of the dice rolls. The Roleplay book adds expansive content, and this adds breadth to the game. However, Advanced Heroquest has the deepest rules for dungeon crawling of the three.
Perusing these boardgame rulebooks really highlights that D&D has pretty bad rules for handling traps and loot. There's a couple of random tables, but for placing and showing them to players the rules basically state "it's up to the DM". As such, when it comes to traps and treasure the only information is about what types are available, not how to use them. The nature of a board game like Heroquest allows for more solid rules on placing and using traps and finding treasure.