Some of you are using this manuscript in your courses. This is fineif you are a non-profit educational institution. However, note thatthere are few exercises here. The exercises are in the book Karel++. Ifyou use this manuscript it will be helpful to the authors and to yourstudents if you have at least a few (more than one) copies of theprinted book available for your students. That way they have theexercises and the authors (and publisher) get paid something for ourefforts.
If you are using this manuscript I'd like to know about it. Pleasesend me email at email@example.com.
|Dedication | TeachingNotes | Table of Contents |
Simulator | Use with JJ| Use with BlueJ | Extras
In preparation for publishing this as abook some decisions are being made that you should be aware of. Notethat I have no publication date or firm plan yet, but the manuscript isbeing updated. The online version will probably not change to reflectthese decisions, however. When it is published, most of the manuscriptwill no longer be available here and I will ask that those who mirrorit update their pages accordingly for copyright reasons. The list ofdecisions below may change as we proceed.
If you feel strongly about any of these issues, please feelfree to contact me.
| ||Dedication.The authors would like to dedicate this work to the memory of KristenNygaard, who, along with his friend and colleague Ole-Johan Dahl,invented object-oriented programming in the 1960s and who worked sincethen to refine and extend it. Kristen was an interesting and livelyperson who worked his entire life to make things better for others,both in technology and otherwise. We, who came to know him, miss himand his continuing inspiration greatly. He died suddenly in August 2002at the age of 75.|
Supplementary Java Code: This zip file contains the code extracted from the text of the book. All complete classes are included plus a few goodies.
Optional Section on Linked Lists(before selection)
Optional Section on Recursion (beforeiteration)
A new simulatorwith a world builder is now available.
Note that the worlds read and written by this simulator are notcompatible with those of the Karel ++ versions. Here we use simple textfiles, where in the earlier work we used a proprietary format.
You will need a text editor or IDE to create java programs for thissimulator. You will also need Java.
Here is anothersimulator independently developed in Germany by Christoph Bockisch.This one is built with Swing and uses features of Java 1.4, so it onlyruns on the latest Java versions. I have not been able to test this. Itis faithful to the current manuscript, in that the user writes a "task"not a "public static void main..." There is a preprocessor to translateit to real Java. Note that the book, when published will probably alsobe real Java, and "task" and "loop" will be replaced by their true Javaequivalents. This simulator also does not support the functionalityneeded in the later chapters of the manuscript.
You can now purchase Karel J Robot auxiliary products, such as shirts and buttons from
The authors do not make a profit from these goods. They are provided "just for fun." Enjoy. You might want to give out a button or two as prizes for particularly well done programs.
JJ is an online interactive Java educational environment that youcan use with just a Java enabled browser. Karel J. Robot is nowavailable interactively via the JJ system at http://www.publicstaticvoidmain.com/.
You can test it at
BlueJ (http://www.bluej.org/) isa Java environment for novices. On the IDE page youcan find a link to instructions on how to makeit work with Karel J. Robot.
Here is an exercise that you can do after completing the first sevenchapters of Karel J. Robot. The LostBeeper Mine Adventure.
Some additional exercises were written for Karel++. They work withKarel J. Robot just as well. Note, however, that Chapters 5 and 6 inthe printed Karel++ corresponds to Chapters 6 and 7, respectively, inKarel J. Robot. Additional Exercises.
There are some Additional Materialsavailable that were produced by other people.
There are some Additional Classesavailable that you might want to use with your Robot programs.
Here is a Role-Play Exercise youcan use to introduce Karel J. Robot and some ideas of Object-OrientedProgramming. Thanks to Joseph A. Tosh for this.
Karel J Robot as a Turing Machine
Some additional ideas about using Polymorphism (see Chapter 4) is now available.
Karel J Robot is smarter than I thought. It can now CalculatePI. Thanks to Dan Eliot of Azusa Pacific University and El DoradoHigh School for providing this neat project for students.
There is now a ChangeHistory pagefor the simulator and for these pages.
Back to Joseph Bergin's Home Page.