Questions

version 5 by Michael Callaghan

  • Home page
  • Beginning
  • Previous
  • Next



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