Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- public class helloWorld {
- public static void main(String[]args){
- Scanner input=new Scanner(System.in);
- int y; //y is the number of letters in secretWord
- int guess = input.nextInt();
- int lives =6; //x is the index that it goes thru
- static boolean checkGameWon(String secretWord, ArrayList<Character>lettersGuessed) //retrieves a boolean True if all the letters in secretWord are in lettersGuessed
- //loop through the letters of secretWord.
- for (int index = 0; index<secretWord.length; index++){
- if (lettersGuessed.contains(secretWord.charAt(index))){
- return false; }
- }
- }
- static boolean getWordProgress(String secretWord, ArrayList<Character>lettersGuessed)
- //how much of the word
- //returns String comprised of letters and underscores
- //which represent letters not yet guessed in secretWord
- for(int i=0; i<26; i++){
- System.out.print((char ('a'+ i));
- }
- static boolean getRemainingPossibleLetters(ArrayList<Character>lettersGuessed) //letters left
- //returns String comprised of letters that have not yet been guessed
- //the letters should appear in alphabetical order
- while (secretWord > 0){
- secretWord.length = y;
- for (int i = 0; y>0; i++){
- System.out.print("_ ");
- System.out.print("abcdefghijklmnopqrstuvwxyz")
- lettersGuessed = nex
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement