Due: Friday, Feb 17th, 10:30A.M.
YEAH Hours: Thursday, Feb. 9th, 7:30-9P.M. in Bishop Auditorium
Your fourth assignment will give you practice with Strings and file reading.
This assignment may (optionally) be done in pairs. As a reminder, you may only pair up with others with the same section time and location.
NOTE: We found a small bug when running the Hangman starter code on Windows machines. Specifically, due to the way Windows displays Eclipse programs, the height of the screen is 20 less than when running on a Mac. For this reason, the constant Y value given for the incorrect guesses label (
INCORRECT_GUESSES_Y) is off-screen.
To resolve this issue (for consistency, every student please do this, Mac or PC), PLEASE CHANGE
INCORRECT GUESSES_Y and
PARTIALLY_GUESSED_Y to the following:
/* The y-location to display the partially guessed string */
private static final int PARTIALLY_GUESSED_Y = 430;
/* The y-location to display the incorrectly guessed letters */
private static final int INCORRECT_GUESSES_Y = 460;
The starter code below has also been updated to reflect this change. We apologize for the last-minute change; if you do not make the above change, you will not be penalized if your incorrect guesses label is offscreen, as long as you are positioning it correctly. But the above change may help ensure that your calculations are correct.