Notes, Examples, and Assignments
This page contains the material related to the CS-CAMP at Rice University
Web Design Tutorial
Follow along with the web design tutorial. This isn't comprehensive but is a brief overview of the basics.
Scheme Materials from HtDP
Copy and paste this code under your draw-next-part program to complete the Hangman program.
;; ;; your draw-next-part program goes here ;; (define-struct word (1st-letter 2nd-letter 3rd-letter)) (define (choose-letter 1st-letter 2nd-letter 3rd-letter) (cond [(symbol=? 1st-letter 3rd-letter) 1st-letter] [else 2nd-letter])) (define (reveal chosen-word status-word guess) (make-word (choose-letter (word-1st-letter chosen-word) (word-1st-letter status-word) guess) (choose-letter (word-2nd-letter chosen-word) (word-2nd-letter status-word) guess) (choose-letter (word-3rd-letter chosen-word) (word-3rd-letter status-word) guess))) ;;PLAY HANGMAN: (hangman make-word reveal draw-next-part)
Other Materials
- OOP & Java Zip File 1.1mb
- OOP Sorting: TunesBrowser
- Hangman from HtDP
- Download DrScheme