Artificial Morality: Virtuous Robots for Virtual Games

By Peter Danielson | Go to book overview

APPENDIX B:


PROLOG IMPLEMENTATIONS

This appendix provides more detail of several key features of my Prolog implementation of players and games. 1

B.1

OPTIONAL TRANSPARENCY

In Chapter 4, I stressed that publicity was optional. I will now work out one way to implement this choice. It is easy to think of permissions as filters on the predicate subject to permission. To filter execution of the other player’s move2 predicate, I require players to invoke a new predicate, pubmove2 that shadows the unfiltered predicate move2:

pubmove2(Player,Game,Other,Omove,Amove):-

permit(Player,Game,Other,execute),

move2(Player,Game,Other,Omove,Amove).

The filtered predicate will fail unless it can pass the filter. 2 To see the difference that permission makes, consider UD1, who you will recall does not permit execution of his procedure.

?- pubmove2(ud1,pd,cc1,c,What).

⇒ No

?- move2(ud1,pd,cc1,c,What).

⇒ What=d

As a consequence of the failure of the permit query, CC1, which uses pubmove2, will choose D when paired with UD1, not because UD will choose D. Rather, CC1 can’t find out what UD1 will do and defaults to D.

-205-

Notes for this page

Add a new note
If you are trying to select text to create highlights or citations, remember that you must now click or tap on the first word, and then click or tap on the last word.
One moment ...
Default project is now your active project.
Project items

Items saved from this book

This book has been saved
Highlights (0)
Some of your highlights are legacy items.

Highlights saved before July 30, 2012 will not be displayed on their respective source pages.

You can easily re-create the highlights by opening the book page or article, selecting the text, and clicking “Highlight.”

Citations (0)
Some of your citations are legacy items.

Any citation created before July 30, 2012 will labeled as a “Cited page.” New citations will be saved as cited passages, pages or articles.

We also added the ability to view new citations from your projects or the book or article where you created them.

Notes (0)
Bookmarks (0)

You have no saved items from this book

Project items include:
  • Saved book/article
  • Highlights
  • Quotes/citations
  • Notes
  • Bookmarks
Notes
Cite this page

Cited page

Style
Citations are available only to our active members.
Buy instant access to cite pages or passages in MLA, APA and Chicago citation styles.

(Einhorn, 1992, p. 25)

(Einhorn 25)

1. Lois J. Einhorn, Abraham Lincoln, the Orator: Penetrating the Lincoln Legend (Westport, CT: Greenwood Press, 1992), 25, http://www.questia.com/read/27419298.

Cited page

Bookmark this page
Artificial Morality: Virtuous Robots for Virtual Games
Table of contents

Table of contents

  • Title Page iii
  • Contents v
  • List of Figures ix
  • Acknowledgments xi
  • How to Avoid Reading Some of This Book xiii
  • Part I - Method 1
  • 1 - Rationality and Morality 3
  • 2 - Fundamental Justification and Games 19
  • 3 - Nature and Artifice 39
  • Part II - Rational Constraint 57
  • 4 - Conditional Co-Operation 61
  • 5 - Reciprocal Co-Operation 88
  • 6 - A Moral Monster? 111
  • Part III - Flexibility, Information, and Acquiescence 125
  • 7 - Flexible Players 129
  • 8 - Information and Its Costs 148
  • 9 - Chicken 163
  • 10 - Discrimination, Fairness and Sanctions 179
  • 11 - Conclusion 195
  • Appendix A 203
  • Prolog Implementations 205
  • Notes 210
  • Bibliography 229
  • Index 236
Settings

Settings

Typeface
Text size Smaller Larger Reset View mode
Search within

Search within this book

Look up

Look up a word

  • Dictionary
  • Thesaurus
Please submit a word or phrase above.
Print this page

Print this page

Why can't I print more than one page at a time?

Help
Full screen
/ 242

matching results for page

    Questia reader help

    How to highlight and cite specific passages

    1. Click or tap the first word you want to select.
    2. Click or tap the last word you want to select, and you’ll see everything in between get selected.
    3. You’ll then get a menu of options like creating a highlight or a citation from that passage of text.

    OK, got it!

    Cited passage

    Style
    Citations are available only to our active members.
    Buy instant access to cite pages or passages in MLA, APA and Chicago citation styles.

    "Portraying himself as an honest, ordinary person helped Lincoln identify with his audiences." (Einhorn, 1992, p. 25).

    "Portraying himself as an honest, ordinary person helped Lincoln identify with his audiences." (Einhorn 25)

    "Portraying himself as an honest, ordinary person helped Lincoln identify with his audiences."1

    1. Lois J. Einhorn, Abraham Lincoln, the Orator: Penetrating the Lincoln Legend (Westport, CT: Greenwood Press, 1992), 25, http://www.questia.com/read/27419298.

    Cited passage

    Thanks for trying Questia!

    Please continue trying out our research tools, but please note, full functionality is available only to our active members.

    Your work will be lost once you leave this Web page.

    Buy instant access to save your work.

    Already a member? Log in now.

    Author Advanced search

    Oops!

    An unknown error has occurred. Please click the button below to reload the page. If the problem persists, please try again in a little while.