this has several uses:
- collect data (user name, email, age, favorite drink)
- run small conversations // like in Replika
- run visual novel text prompts
- combined with a switch case to select the active AXPrompt object can add several paths to a visual novel
the Prompt class uses a regex to filter acceptable results
in the above example:
apple|banana|grapes is a regex for any of this 3 options
orange for example will not be acceptable and the prompt will not move forward to the next
prompt(question)
the regex ^(?!\s*$).+ means not empty string.