Please remember to submit your 1 page outline for your final project by tomorrow. A few thoughts and recommendations: Some people have asked if they may work in a group. You may do so as long as I receive an email from each person in the group listing the project they will be working on and the parts of the code for which each person will be responsible. I am including some code samples below for some simple graphics programs. It is not mandatory that your game includes graphics components as long as it is of sufficient complexity. Some examples of programs you could make without graphics coding would be dice games like Yahtzee, or Left, Right, Center. There are many other possibilities. These could be coded without graphics, with any "pictures" of dice being made by the use of print and println statements. I would expect in these programs to see the uses of arrays or arraylists as well as multiple classes making up the code for the game. You might have a separate class for Dice, Turn and Game with the associated methods in these classes for your overall program. (Similar to the coin class in the coin toss game we wrote near the beginning of the school year.) One reminder. I am WELL AWARE that there are code versions for many of these games already out there on the web. It is just as easy for me to do a google search for code as it is for you. If your code appears to be cut and pasted from an existing sample, (practically the same where maybe variable names were just changed around), you will receive no credit for your project. The goal for this last project is for you to have some fun with what you have learned and show off what you can do. It is okay to use existing samples as templates and references, but I would much rather see an honest attempt on your part that is less than perfect or even incomplete versus a copy of somebody else's work that runs perfectly. The file below gives some code examples on how to create windows for graphics objects, paint objects in the window or import image files into your window, and have your application able to read and handle mouse events.
Comments are closed.
|