← All Workshops

MudEngine Part 2: Single-Player REPL

Congratulations!

We built a working single-player MUD engine! While simple, this REPL shares the same architecture as every major MUD:

  • A World model that owns rooms and tracks the player
  • Commands that are parsed and dispatched
  • State mutations (moving between rooms) that produce descriptions

In Part 3 we will:

  • Add a command parser that handles arguments (say hello, get sword)
  • Implement objects and inventory — pick up, drop, and carry items
  • Introduce NPCs that can be talked to or fought
  • Replace the REPL with a Dioxus GUI that connects to a server

The foundation is laid. The dungeon awaits! 🏰