Prisoner's dilemma


Relevant sections in text: 1.3, 2.2.1

This assignment presents a simple game-playing program, in which strategies are represented as higher-order procedures. The Game of Twenty-One assignment takes a similar approach. The prisoner's dilemma game also uses some simple list-manipulation commands. There is an opportunity here to run prisoner's dilemma tournament for the class.

We are grateful to Franklyn Turbak, Mike Eisenberg, and Mitch Resnick for developing this assignment.

Files for download:

ps4prs.tex TeX source for the assignment.
ps4prs.scm Scheme source code required for this assignment.
ps4prs.ps Postscript file for printing the assignment

To download files, hold down shift while clicking on the appropriate link.
To view files, click on them.
To see directory listing, click here.


Copyright © 1985-1996 Massachusetts Institute of Technology.
The material in these problem sets may be duplicated, modified, and redistributed for any non-commercial use in conjunction with the book Structure and Interpretation of Computer Programs.


Return to sample assignment page

Return to SICP page


Last modified: Tue Oct 8 17:22:47 1996