How would you make a Candy Box/A Dark Room-style roguelike?

Here it is: