Ali Baba and the Forty Thieves

Ali Baba and the Forty Thieves (also referred to as Ali Baba & the Forty Thieves and Ali Baba and the 40 Thieves in Age of Adventure labeling) is an adventure game for the Apple II, Atari 8-bit, and Commodore 64. It was programmed by Stuart Smith and released by Quality Software in 1981.

The game also appeared in a two game cartridge called Age of Adventure, along with The Return of Heracles, a year later in 1982.

The player plays as Ali Baba, and travels through a maze-like map of the city in order to rescue a princess. The game involves interaction with shopkeepers and enemies throughout the game's extensive map. Ali Baba and the Forty Thieves incorporates various mythological and folkloric elements into the storyline and environment. These include the Western zodiac and ancient Arabic fairytales.