Hybrid Choices

version 7 by AW Freyr

  • Home page
  • Beginning
  • Previous
  • Next



  • Part - Pages and Choices
    A page is a kind of object. The no-page is a page.
    A page has a text called a description. A page has a truth state called the displayed boolean. A page has a text called a cdesc.
    [A choice is a kind of value. The no-choice is a choice.
    A choice has a text called a description. A choice has a truth state called chosen boolean. A choice has a truth state called displayed boolean.]
    The current page is a page that varies.
    The previous page is a page that varies.
    Definition: a page is previously displayed if its displayed boolean is true.
    [Definition: a choice is previously displayed if its displayed boolean is true.
    Definition: a choice is previously chosen if its chosen boolean is true. ]
    To decide whether reading (X - a page):
        if X is the current page and in CYOA mode:
            decide yes;
        decide no.