Textual simulation engine