germatest.blogg.se

Karel java game
Karel java game











karel java game

If you are still having trouble, please come to Colin or Annie's office hours, or stop by the LaIR. Q: I'm having trouble getting Eclipse to work! Help!Ī: Please make sure you followed the instructions in our Eclipse Guide above. You can hardcode one of the words shown in the sample output to check if that part of the output is correct. But you should have the same general output format as our logs.

karel java game

For later phases, you don't have to match the randomly chosen words shown in our output logs. If your program works perfectly for those cases, it is very likely that the output is correct for others. Q: Since the program is so random, how can I possibly match the expected output? How can I use the Output Comparison Tool?Ī: For starters, we suggest that you match the output from the early stages of the program where the secret word is fixed at "PROGRAMMER". See the Eclipse guide for more information. You must use the black "running person" icon from the toolbar or the "Run" option from the Stanford Menu, not the green "Play" button. What is wrong?Ī: There can be several reasons for this, but the most common is that you are not running your project in the required way. No matter what file name I type, it never stops re-prompting me to enter the file name again and again.

karel java game

Q: I am using the promptUserForFile method to ask the user for a file name. Q: Do I have to handle the case where the user types a blank line (empty string)? Instead, read an entire line as a String and do string processing if you would like the first character. Q: Is there a way to read a single character of text from the user as a char?Ī: You cannot read a single char. What is going on?Ī: You must also import java.applet.* the handout has been updated to reflect this. Q: I am trying to add sounds to my program, but I am getting an error that "AudioClip cannot be resolved to a type", even though I imported acm.util.* as the handout mentions.













Karel java game