Index

E L M N P S T W 
All Classes and Interfaces|All Packages

E

exitGame() - Method in class TwentyQuestionsView
Exit the game.

L

loserMessage() - Method in class TwentyQuestionsView
Print a message for when the player loses.

M

main(String[]) - Static method in class TwentyQuestionsMain
Main driver for the program.

N

nameIntroduction(String) - Static method in class TwentyQuestions
The return string is based on the player's name.
numberInfo(int) - Static method in class TwentyQuestions
Depending on the value of the number, return one of the following statements: If the number is less than 10 but greater than 0, return "a single digit.". If the number is 7 return "lucky sevens!". If the number is 42, return "the answer to life the universe and everything.". Otherwise return "a positive number.". Hint: Your `if` statements should go from most specific to least specific.

P

playGame(int, int) - Static method in class TwentyQuestions
Compares player's guess to the actual number.

S

splash() - Method in class TwentyQuestionsView
Splash screen for the game.

T

tooHigh() - Method in class TwentyQuestionsView
Print a message for when the player's guess is too high.
tooLow() - Method in class TwentyQuestionsView
Print a message for when the player's guess is too low.
TwentyQuestions - Class in Unnamed Package
 
TwentyQuestions() - Constructor for class TwentyQuestions
 
TwentyQuestionsMain - Class in Unnamed Package
 
TwentyQuestionsMain() - Constructor for class TwentyQuestionsMain
 
TwentyQuestionsView - Class in Unnamed Package
 
TwentyQuestionsView() - Constructor for class TwentyQuestionsView
 

W

welcome() - Method in class TwentyQuestionsView
Print a message for before the game starts.
winnerMessage() - Method in class TwentyQuestionsView
Print a message for when the player wins.
E L M N P S T W 
All Classes and Interfaces|All Packages