/*********************** * * classname WheelGame - a class that represents a Wheel of Fortune game * * Author: Shawn Brenneman * Date: 2015-Oct-25 * ***********************/ public class WheelGame { private String key; private char[] puzzle; private int guesses; public WheelGame(String phrase) { this.key = phrase.toUpperCase(); this.createPuzzle(phrase); this.guesses = 0; } private void createPuzzle(String phrase) { this.puzzle = new char[phrase.length()]; phrase = phrase.toUpperCase(); for (int i=0; i= 'A' && phrase.charAt(i) <= 'Z'){ puzzle[i] = '_'; } else { puzzle[i] = phrase.charAt(i); } } } public boolean isSolved() { boolean same = true; for (int i=0; i