![]() Greeps are land animals they cannot swim. By a magnificent stroke of luck, there are some piles of tomatoes in the area. The greeps will come out and start swarming around in search of tomatoes. When you run the scenario, you will see that a spaceship lands in an area with sand and water. GREENFOOT GREEPS DOWNLOADTo start, download the Greeps scenario file, greeps.zip, and open it in Greenfoot. We want to keep this as a programming challenge for others and don't want to make it too easy to find solutions.) Instead, post an executable version that others can see and run to compare their score and their code's behavior. (However, if you post to the Greenfoot site, please do not include source code. If you are on your own, you could post your entry to the Greenfoot website to see how you compare to others who have posted there. Or you can use it with a group of people in a coding club. You can use this exercise in a competition against a friend who programs his or her own greeps. You will have limited time, and every tomato you manage to bring back to the spaceship scores a point. The challenge in this programming competition will be to program your greeps so that they find and collect tomatoes as quickly as possible. They have landed with their spaceship and are swarming out to find and collect tomatoes (Figure 1). Greeps are alien creatures, and they've come to Earth! One of the important things to know about greeps is that they like tomatoes. (And, be warned: the competition is highly addictive! Even if you are an experienced programmer, you might have some fun attempting this task. However, it works equally well with older age groups. The age range for which this example can be used is from about 13 years upwards. This exercise not only teaches Java-it gives people practice in computational problem-solving. However, don't let the simplicity of the constructs fool you: the task itself, while it can be started easily using some basic ideas, can be improved considerably with some intelligent strategy. The programming experience needed to tackle this example is quite modest: you need an understanding of variables, method calls with parameters, and if statements. (I use the term kids in the widest possible sense: I mean kids of any age! This probably includes most of us…) Whenever you have one or more kids that you want to motivate to really get into writing some code, you can use the Greeps contest. It does not matter whether you are running a coding club, helping out with programming in your kid's school, teaching your own son or daughter to write Java-or even wanting to learn Java yourself. This article provides an example you can use. All of this works best with interesting, exciting, fun examples. GREENFOOT GREEPS HOW TOBut many of us are in situations where we want to show others how to program, show people the excitement and enjoyment that comes with getting your code running, and teach them how to write Java. ![]() If you have been reading Java Magazine, you are likely not a novice programmer. ![]() In this article, we will apply what was discussed in those articles to have some fun: creating a programming contest involving alien bugs. ![]() ![]() In those articles, I discussed aspects of Greenfoot, as well as some aspects of learning to program in Java. GREENFOOT GREEPS SERIESI wrote a series of articles for Java Magazine that introduced Java programming with Greenfoot, a programming environment for novices that lets you create simulations and games. 1.7K Training / Learning / CertificationĪ fun competition that teaches Java programming and computational problem-solving.165.3K Java EE (Java Enterprise Edition).7.9K Oracle Database Express Edition (XE).3.8K Java and JavaScript in the Database. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |