Empresa engajada
Design a hangman game
Sigiloso
Assume we are designing just this game and none other, otherwise we would have a generic Game class and a Hangman class would implement the IGame interface. Also lets design such that Hangman can be played both with and without a hint. Required classes and their purpose Hangman - main class that plays the game. It will have both the startgame and startgamewith hint option. WordHintTable - class that keeps track of words and their hints. Most likely a dictionary of some sort IWordHint - interface that implements the WordHintTable class method signatures IDraw - an interface that is responsible for drawing different objects AlphabetBoard - responsible for the letters chosen by the player to guess the word. Also implements IDraw since it would handle drawing of the letters and alphabet board differently. Word - the actual word, its state, current pointer and its storage during the game. Implements IWordHint and IDraw