Ali Baba and the 40 Thieves is a maze arcade game released by Sega in 1982. Players take the role of the famous Arabian hero who must fend off and kill the forty thieves who are trying to steal his money. The game is based on the folk tale of the same name.
Another early 80s Ali Baba and the 40 Thieves video game was released in 1981 by Quality Software for the Atari 800 personal computer platform. It stands as one of the earliest examples of the top down view fantasy role playing game that combined puzzle elements of an adventure game with the statistical combat of a Dungeons & Dragons game.