/* Remember your heading
SneakySnackySquirrel.java

If you double click on a blank fill in line, it should be highlighted so that when you type
it will go away.  Then delete this note.
*/

import _____________________________________;	//import library so have access to Scanner

public ________________________________________ 
{
	Player holly;
	______________________________________ main (_____________________args) 
	{
		____________________________________________; //create an instance of the class SneakySnackySquirrel
		____________________________________________; //use the instance your created to call the run method
	}
	
	public void run()
	{
		____________________________________________; //declare a boolean called again and initialize it with true.
		_________rand = 56;   //declare the variable called rand and initialize it to 56.  You may have to read later to 
       						  //determine what data type to use.
		holly = new _____________________("holly");   //call constructor for the Player class; construct the Player
							      					//called holly
		while ( holly.acorn < 5 && again )	//this repeats the next four lines until you win.  You do not need to add 
		{									//anything to this line.
			rand = _______________;   //call the method called spin and accept the result
			________________________;  //call the decide method, passing the random number as the parameter
			holly.printScore();  //call printScore() in the Player class
			if (holly.acorn < 5)	        // this is so when the game ends, it does not ask to spin again.

				_________________________;  //call playAgain and accept returned value (local boolean already
											// declared)  
		}
	}

	public ____________________ playAgain(_________________)	//this method lets us control playing again, creating 
	{														//user-interaction
		___________________________________________________________;  //declare and instantiate a Scanner 
										      //called reader	
		String typed = new String ("");	
		System.out.println("Press return to spin again. ");
		typed = reader.nextLine();  
		___________________________;  //pass the value true (a variable is not needed) back to the method call for 
									  //playAgain()
	}

	public byte spin()  	 //spin() method generates random values
	{
		byte spun = -6;
		spun = (byte)(____________________________________________);  //generate a random number btwn 1 and 8 
																	//inclusive
		_____________________________________;  //designate what will be sent back to the method call that got us to 
											    //spin() earlier
	}

	public _______________________ decide(__________________ input)	// This method is for deciding how to 
	{				//change the acorn count based on the spin.  Finish the header.  The body is complete.	
		System.out.println(holly.playerName + " spun " + input);
		if(input >= 1 && input <= 5)
			holly.acorn = holly.acorn + 1;
		else if (input == 6)
			holly.acorn = 0;
		else if (input == 7)
			holly.acorn = holly.acorn – 1;
		else if (input == 8)
			holly.acorn = holly.acorn + 2;
	}	//close decide()
}	//close first class


///  CUT THE FOLLOWING CLASS OUT OF THIS FILE AND MAKE A NEW FILE CALLED:  Player.java
public class Player    
{
	int acorn;
	String playerName;
	
	public _____________________ ( )   //constructor method for a player used if we do not have the player’s information.
	{
		acorn = -5;		
		playerName = "";
	}
	
	public _____________________ (___________________ name)   // constructor method for a player – with a name & score
	{														// this overloads the constructor
		_________________________________;  //set the player’s acorn count to zero – the game has just begun!  Use 
											//the already declared field variable.
		________________________________;  	//give the player the name that was passed to this method and save it as 
											//a field variable (already declared)
	}
	
	___________________________________________  //  complete the header for printScore().  The body of the method is 
	{			//complete.  This method generates appropriate output – number of acorns and a win message.
		System.out.println(playerName + " has this many acorns: " + acorn);
		if (acorn >= 5)
			System.out.println("You won!");
	}
}
