Exercises

In the SubScript distribution available from GitHub, there is a directory

.../scala/src/subscript/subscript/exercises

with (at the moment of writing) the following exercises:

  • Interact.scala
  • SliderDemo.scala
  • TVNoiseDemo.scala

These are simple GUI applications for which you need to add some scripts for the controller. The source files contain spoilers at the bottom.

To work on these exercises it would be convenient to have a “sandbox” folder:

.../scala/sandbox

The ant configuration file build.xml contains a target “sandbox” so that you can issue

ant sandbox

on the command line. Then you may execute an exercise application through commands such as:

qbin/scala -verbose -classpath sandbox subscript.exercises.Interact

Leave a Reply