Though the term "roguelike" derives from the 1980 game Rogue, the first known game with the core roguelike gameplay elements was Beneath Apple Manor (1978), written by Don Worth for the Apple II; Beneath Apple Manor is also recognized as the first commercial roguelike game. The game, inspired by Worth's enjoyment of Dungeons & Dragons roleplaying, included procedural generation using a modification of the random maze generator from the game Dragon Maze, role-playing elements for the characters, tile-based movement and turn-based combat. Though Beneath Apple Manor predated Rogue, it was not as popular as Rogue: Rogue had advantage of being distributed over ARPANET which many college students had easy access to, while Beneath Apple Manor was packaged and sold by hand by Worth either at local stores or through mail fulfillment. Another early roguelike whose development pre-dated Rogue was Sword of Fargoal (1982), developed by Jeff McCord starting in 1979. The game was based on GammaQuest, an earlier title McCord had created on the Commodore PET which he shared locally with friends while a student at Henry Clay High School in Kentucky; the game itself was based on a Dungeons & Dragons campaign he had run himself in the prior years. Before graduating and attending the University of Tennessee in 1981, he had started work on GammaQuest II, which required the player to navigate through randomly generated dungeon levels, acquire a sword, and make it back to the surface with that sword through more randomly generated levels. The more advanced computers available at the school, such as the VIC-20, enabled him to expand out the game further from the highly limited memory on the PET. On seeing the prospects of selling computer software, he eventually got a publication deal with Epyx, where they helped him to refine the marketing of the game, renaming it Sword of Fargoal, and giving him access to the more powerful Commodore 64, enabling him to use graphics and sound as part of the game. The game was considered a success, and when it was ported to the PC in 1983, it out-shone Rogues PC release the same year due to Sword of Fargoals superior graphics and sound. Rogue Rogue was written by Glenn Wichman and Michael Toy in 1980 while students at the University of California, Santa Cruz. The game was inspired by Toy's prior experience in playing the 1971 Star Trek game and programming