This essentially comprises an actual laboratory exercise. You will not have to turn this in, but if you don’t do this you will be totally lost when we do more advanced work with the Grid World that you will have to turn in. So, that being said, here you go….
1. Here is the Grid World Student Manual.
Please don’t print it out - it’s not worth it.
2. Notice that I’ve added the Grid World API documentation to the sidebar on the right.
3. Download the Grid World Code and unzip it.
This is a slightly modified version of the code that comes from the College Board. I modified it so that the sample projects are actually BlueJ projects that will work without modifying your blueJ setup. We’ll talk more about what’s in here at a later time - feel free to explore on your own though.
4. Open the blueJ project called “firstproejct” which can be found in GridWorldCode->projects->firstproject. Compile it and …
STUFF YOU HAVE TO DO:
(Note: when I say “read” below I mean read what you need to. I would recommend first looking at what you have to do and then looking through the reading to find answers to your questions. If you’re the kind of person who likes to read from front to back, then by all means, do that.)
1. You’re now ready to begin READING (YEA!) Part I of the student manual. Do take the time to mess around with the stuff that’s introduced in Part 1.
2. Read part 2 - it refers to “BoxBug” project which can be found in the same folder as the firstproject. As you read at least think about the “Do you know?” questions as you go through it.
DO EXERCISES: 2, 4
3. Read Part 3 and DO the “group activity” - writing the Jumper class and JumperRunner - on your own. There is no example project for this one. You can either make a new project (make sure to include a +Libs folder with gridworld.jar file in it) or just write it into the last project your had working.
Read the “What makes it run?” section at the end of part 3.
4. If you get to this point email me. This is the first year of GridWorld so I have no idea how long it will take.
Posted on March 11th, 2008 by Baker Franke
Filed under: Labs | 2 Comments »