def new(self, mode):
dw = DigitWord(wordtype=mode.digit_type)<EOL>dw.random(mode.digits)<EOL>self._key = str(uuid.uuid4())<EOL>self._status = "<STR_LIT>"<EOL>self._ttl = <NUM_LIT><EOL>self._answer = dw<EOL>self._mode = mode<EOL>self._guesses_remaining = mode.guesses_allowed<EOL>self._guesses_made = <NUM_LIT:0><EOL>
Create a new instance of a game. Note, a mode MUST be provided and MUST be of
type GameMode.

:param mode: <required>