Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

The RWX game is a game where the idea is to guess the same random string that the program has generated.

The RWX game is a game where the idea is to guess the same random string that the program has generated.

For each game, the program should generate a random three character target string (using the characters in string.digits, ensuring that each character in the target string is unique - e.g. "112" is not a valid target string because "1" is repeated). The user then tries to guess the target, and receives a hint after each incorrect guess indicating how close their guess is to the target string.

  • A "W" indicates that all of the characters in the guess are wrong.
  • One or more "X"s indicates that they have a correct character, but in an incorrect position
  • One or more "R"s indicates they have a correct character in the right position

The characters in the hint are presented in alphabetic order. The following table gives an example of the game's output for a user guess. Assume the target string is "123".

python programming, please see the picture attached

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question