Given nothing more than your descriptions, the first game sounds like a description that could be somewhat applied to Infocom's Leather Goddess of Phobos, and the second sounds similar to a description that could be applied to Infocom's Zork series.
Both are pure text adventures however, no graphics.
The first one sounds like a few different games. Did it happen to be "Monuments of Mars"? https://en.wikipedia.org/wiki/Monuments_of_Mars
If you like games like that, this one's not Mars but you might also enjoy Sentinel Worlds I: Future Magic. https://duckduckgo.com/?q=sentinel+worlds+future+magic
They were distributed on the cover disks of a British magazine called What Personal Computer in the early 90s.