Moria is a member of the roguelike RPGs. It features several innovations, like a town level and dungeons levels that are bigger than one screen, and was the first open source and freeware roguelike.
The goal of Moria is to descend in the dungeons of Moria and defeat the evil Balrog who is cowardly hiding on the lowest level. Other than this, there are no other references to J.R.R. Tolkien in this game.
You begin the game by creating your character, choosing your sex and one of eight available races. You can then roll your stats and, when you got some which suit you, choose your class from six available classes (you can only some of them, depending on your stats). After entering a name, you’re ready to roll.
The game is entirely played in turns, feature text-only graphics showing your environment from above, and is played by entering character commands.
You start in town, where you can visit several shops to buy weapons, armor, torches, food and other useful—and sometimes magic—items. You can barter with the shopkeepers to get reduced prices.
The dungeon levels are randomly generated. They contain a variety of monsters, some of which invisible, and items, as well as traps and secret doors. Each level has more than one exit. As in other roguelikes, you explore the dungeons, kill monsters as you go, and try to accumulate as much treasure as possible.