Questions

version 5 by Michael Callaghan

  • Home page
  • Beginning
  • Previous
  • Next



  • Section 3 - Rules for number questions
    Number question rules is a rulebook.
    The number question rules have outcomes exit (success), retry (failure) and parse (failure).
    The first number question rule (this is the invalid number reply rule):
        if the player's command does not match "[number]":
            if closed question mode is true:
                retry;
            if closed question mode is false:
                parse.
    The last number question rule (this is the default number question rule):
        exit.