Relevant sections in text: 1.3, 2.2.1This 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:
TeX source for the assignment.
Scheme source code required for this assignment.
Postscript file for printing the assignment
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