Scheme Tutorial : Graphical Overview


      This portion of the tutorial is meant to do nothing more then demonstrate some of the capabilities of scheme using Dr. Scheme's graphical functions.   Here you will simply load and play with some of the samples.   Please note that you must use Dr. Scheme for this.

To learn about how to make and use Scheme Library files please read the Libraries section of the Dr. Scheme Programming Environment Manual

 

Example: Play Demonic Ping Pong

To better understand what the minesweeper library read the ping pong documentation located on you computer at:

    c:\Program Files\Plt\libs\teach\pingp-doc.html

To access the library functions you must first load and execute the library.  The name of the loaded library appears below the menu of the Dr. Scheme window.  At startup there is no library loaded, so the panel is just gray.  To do this follow the menu items to Language: Set Library To , then select the file:

    c:\Program Files\Plt\libs\teach\pingp-play-lib.ss

To execute the library file click the execute button atop the declarations buffer in Dr. Scheme.   Now you're ready for demonic ping pong!  In the interactions buffer type the following lines:

> (change-speed 120)   ; it's really slow otherwise - I don't want to waste too much of your time
> (go "your name")

A graphical window should appear with an extremely rudimentary ping-pong game.   Enjoy!  

To play protect (a slightly more intense and possibly more demonic game) set the library to:

c:\Program Files\Plt\libs\teach\protect-play-lib.ss

press execute and enter the same input lines to begin.  Enjoy.

 

drevil2.jpg (21262 bytes)

Ping Pong and Protect brought to you by Dr. Evil

Home