Gerard-Meier

Working routine droid

Mar 10th, 2011
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.28 KB | None | 0 0
  1. if(triesRemaining > 0) {
  2.             Character userInput = event.getDisplayLabel();
  3.             if(isValidChar(userInput)) {
  4.                 if(!isAlreadyGuessed(userInput)) {
  5.                     if(!isInSecretWord(userInput)) {
  6.                         triesRemaining--;
  7.                     }
  8.                    
  9.                     charactersUsed.add(userInput);
  10.                 }
  11.             }
  12.         }
Advertisement
Add Comment
Please, Sign In to add comment