#ifndef _LETTERS_H
#define _LETTERS_H

#include <string>
#include <iostream>
using namespace std;

// this class is used to play hangman.  When a Letters
// object is constucted from a string, the Letters object
// processes guesses and can display the word-to-be-guessed
// in the format              __ __ __ __
// where __ are filled in
// with guessed letters as appropriate
//
// Letters let("famous");     // let permits playing to guess "famous"
// Letters let(ws.GetWord()); // play with word from a WordSource ws
//
// GuessLetter(s) returns true if s in in the word to be guessed:
//
// bool x = let.GuessLetter("a") // true if a is in the word, else false
//
// let.Display();  // displays to-be-guessed word with __ for
//                 // letters in the word that need to be guessed

class Letters
{
  public:
    Letters(const string& s);
    bool GuessLetter(const string& letter);
    void Display();
    
  private:

    string myDisplay;
    string myString;
};

#endif
