In Python 3 Implement A Subclass Described Below Of Word Guess A Variant Of The

In PYTHON 3- Implement a subclass (described below) of “Word Guess”, a variant of the game Hangman. In this game, a word is first randomly chosen. Initially, the letters in the word are displayed represented by “_”.

For example, if the random word is “yellow”, the game initially displays “_ _ _ _ _ _”.

Then, each turn, the player guesses a single letter that has yet to be guessed. If the letter is in the secret word, then the corresponding “_” are replaced with the letter. If the letter appears more than once in the secret word, then “_” is replaced with the letter for each instance. For example, if the player guesses the letter “l”, then the game’s progress will be updated to “_ _ l l _ _”.

TASK:

Your task will be to complete the Node class in Node.py. The Node class was modelled after the SLinkedListNode class. The methods setData(element), setNext(reference), getData(), and getNext(), which make up the Node ADT, have already been written for you. Now write the following two additional methods:

* getDisplay(): Returns True if the letter stored in self.data should be displayed when the Word Guess game prints the current game progress. Returns False otherwise.
* setDisplay(newDisplay): Sets whether or not the letter being stored in self.data should be displayed when the Word Guess game prints the current game progress

Note: You may need to introduce a new class attribute to implement these two methods

Node.py TEMPLATE:

: :self.data = initDataself.next = initNext : self.data : self.next : :self.data = newData :self.next = newNext :

Place this order or similar order and get an amazing discount. USE Discount code “GET20” for 20% discount