Book
Links to the repository and documentation for the Karel the Robot unit.
Links to the repository and documentation for the Karel the Robot unit.
Links to the repository and documentation for the Karel the Robot unit.
Reading and homework for the first two chapters of the Karel book.
Short list of updates and exercises for Chapter 3.
Very important chapter: Choreographer, Contractor, Strategy, Spy, Observer. Design patterns in Java.
Great chapter: Strategy, Spy, Observer. Design patterns in Java.
Practice for the fundamentals of coding in Java: logic and loops.
PrettyBoxBot to practice interfaces
A fish robot that alternates between two strategies so it is harder for predators to predict its motion.
Three exercises to improve your understanding of classes and interfaces.
Review exercises for class design.
Undoing Page 100, exercise 12 - the robot that has the undo command. I used the idea of a Decorator strategy. Simultaneous Action Chapter 8 in the text shows how to make more than one robot act at the same time. See the MultiThreadBot on the class GitHub. A brief summary is: World.setupThread(robot) prepares the robot to act in its own thread. World.startThreads() calls the run() method for every robot that is set up as threading using the command above.
Karel test, based on the review done earlier. Be sure to understand the material from 4.6.
A skit involving robots making decisions.
How to use IntelliJ IDEA to work with our Karel the Robot configuration.
On GitHub, I have placed a KarelHRobot.jar that has a hacked UrRobot that has the following capabilities: street(): The current street the robot is on (row = y) avenue(): The current avenue the robot is on (column = x) direction(): The direction the robot is facing. beepers(): The number of beepers the robot has in its beeper bag. I know some people have already enhanced UrRobot with similar capabilities. These hacks are to let the rest of you finish your project without learning every trick of Karel programming.
Links to the repository and documentation for the Karel the Robot unit.
Links to the repository and documentation for the Karel the Robot unit.
Reading and homework for the first two chapters of the Karel book.
Short list of updates and exercises for Chapter 3.
Very important chapter: Choreographer, Contractor, Strategy, Spy, Observer. Design patterns in Java.
Great chapter: Strategy, Spy, Observer. Design patterns in Java.
Practice for the fundamentals of coding in Java: logic and loops.
PrettyBoxBot to practice interfaces
A fish robot that alternates between two strategies so it is harder for predators to predict its motion.
Three exercises to improve your understanding of classes and interfaces.
Review exercises for class design.
Karel test, based on the review done earlier. Be sure to understand the material from 4.6.
A skit involving robots making decisions.
How to use IntelliJ IDEA to work with our Karel the Robot configuration.