Typed Racket

  • Typed Intro
  • All of the basics you need to start using Typed Racket.

  • Typed Variables and Functions
  • Giving types to variables and functions.

  • Typed Structures
  • Using define-struct in Typed Racket. Additional info on posn-util, struct-copy, and limit for use with make-color.

  • Typed Big Bang
  • big-bang works almost exactly the same in Typed Racket. This page explains any differences.

  • Typed Exercises 1
  • Introductory exercises for learning Typed Racket.

  • Typed Exercises 2
  • Additional practice writing typed functions, includes lists and recursion.

  • Typed Exercises 3
  • Exercises to practice using structures in Typed Racket.

  • Bumper Cars
  • Game struct For bumper boats, we want a struct that contains: id name position velocity radius color Draw handler For one player bumper cars, just draw the single car (circle) in the right color, with the name shown in the middle of it. Tick handler Update the position, adding the velocity. Mouse handler Change the velocity so that the circle moves towards the mouse click with a speed of 10.

  • Bumper Two Player
  • Conversion from one player to two player bumper boats.

  • Checkers
  • Two player checkers in Typed Racket