public class Jotto { // instance variables private Dictionary myDictionary; private int myMaxGuesses; private String mySecret; private Prompter myPrompter; public Jotto (String fileName, int maxGuesses) { myDictionary = new Dictionary(fileName); myMaxGuesses = maxGuesses; // TODO: initialize remaining instance variables } public void play () { // TODO: choose secret word for this specific game int numGuesses = 1; while (numGuesses <= myMaxGuesses) { String guess = myPrompter.promptString("Guess #" + numGuesses + ": "); // TODO: check player guess and provide player feedback } // TODO: report whether player won or lost } public boolean playAgain () { return myPrompter.promptYesNo("Do you want to play again"); } private int commonCount (String a, String b) { // TODO: add your implementation from lab here return 0; } private String getPlural (int value) { if (value == 1) return ""; else return "s"; } public static void main (String[] args) { String wordsFile = "words5_common.txt"; int maxGuesses = 16; System.out.println("Welcome to Jotto!"); Jotto game = new Jotto(wordsFile, maxGuesses); do { game.play(); } while (game.playAgain()); System.out.println("Thank you for playing :)"); } }