RU beehive logo ITEC dept promo banner
ITEC 380
2012fall
ibarland
tlewis32

homelecturesexamshwsbreeze (snow day)

hw-ec-racket-way-questions
The Racket Way
comprehension questions

The video+slide presentation below is nice. However, probably a more technically useful bit would be reading “Creating Languages in Racket”, ACM Queue, 2011.Nov.

For 10 hw points: Watch the following presentation Racket, 50min (approx).
(Try to watch on a large monitor, so you can see the slides at the same time as watching the video feed. Be sure not to full-screen the video feed, else you won't see the slides at all; slides+audio is more helpful than the video.)

For 15pts of extra-credit, related to the last question above:
For each of versions v0, v1, and v5 of the text-adventure game:

Note:Full source code for the evolving versions is linked from “Creating Languages in Racket”, ACM Queue, 2011.Nov.
add the following features to the game: For this code, submit three folders (v0,v1,v5) to D2L dropbox ec-text-adventure, each a working program. Also, for easy reference, submit one single file that just has the code you added in each case (this file won't run successfully, of course, since it's missing all its support code.)

For significant extra credit (but commensurate difficulty!): introduce a new concept to the game (something besides a place, item, or verb), and then add support for that concept to v2/v3, v4, and v6.
For example, perhaps there are colors; each place and item has one color, and the explorer has a set of colors. The explorer can only enter places whose color is one they have, and grabbing/dropping items causes the explorer to gain/lose those colors. You would add such support to the macros in v2, the type-checking in v4, the syntax-colorer in v6, etc.


1 The important difference is unquote: In php, when your file is in php-mode, you can't un-escape back into text mode (which is still nested inside the php mode which is itself nested inside the outermost text mode).      

homelecturesexamshwsbreeze (snow day)


©2012, Ian Barland, Radford University
Last modified 2012.Nov.20 (Tue)
Please mail any suggestions
(incl. typos, broken links)
to ibarlandradford.edu
Powered by PLT Scheme