CSS 142 Seattle Central Community College Super Mario Brothers Programming Code
Description
- Limit the width of your code to 80 characters. This makes it easier for me to read.
- Define variables
mario
andcoin
. What data type should they be? How might you use these variables? - Make methods in your code. These methods can all be part of the class that has the
main
method. - You shouldn’t need to use looping or branching, though, of course, you could if you wanted to. Unless you are already pretty comfortable with those constructs, I’d stick to doing this the more straightforward way.
- If you’re using the BlueJ IDE, here is a quick reviewof how to make it work:
- Pay attention to the last sentence in that review that tells you how to clear the screen each time before you run your
main
method. Otherwise, successive screen writes will add onto previous writes. - In the same Options menu that controls clearing the screen, also select “Unlimited Buffering”. Otherwise, if your boards are long, all of them will not show on the screen.
- Use Tab and Shift-Tab to quickly indent and deindent blocks of code.
- Pay attention to the last sentence in that review that tells you how to clear the screen each time before you run your
And a final checklist of things to look at before you submit your work:
- Remember you are turning in two files! (See the assignment description for details.) Please make sure any images are oriented so they are upright when opened.
- Compile and execute your code before you submit the “.java” file. If it doesn’t work, something is wrong.
- Check the extensions of the files you are submitting. The list of file types you can submit are given below.
- Make sure both files start with “LastFirst”, i.e., your lastname then your firstname, with the first letter of each capitalized. If you do not do this, I cannot guarantee I’ll be able to properly credit you with creating a working program.