Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The next step on our journey to implementing Wordle is to produce a program that gives the player one shot at guessing your programs secret

The next step on our journey to implementing Wordle is to produce a program that gives the player one shot at guessing your programs secret word. (Of course, they can play the game multiple times in order to have multiple chances.)

In this exercise, you will prompt the user for a word that matches the length of your secret word. Well use "python" for the purposes of our examples and autograding. By the end of this exercise, your program will be able to work with a secret word of any length, though!

You should follow the steps below for implementing the program one step at a time. To get a sense of where you are going, here is an example of a final game ():

 $ python -m exercises.ex02_one_shot_wordle What is your 6-letter guess? hello That was not 6 letters! Try again: whoopsy That was not 6 letters! Try again: jumped  Not quite. Play again soon! $ python -m exercises.ex02_one_shot_wordle What is your 6-letter guess? mythic  Not quite. Play again soon! $ python -m exercises.ex02_one_shot_wordle What is your 6-letter guess? photos  Not quite. Play again soon! $ python -m exercises.ex02_one_shot_wordle What is your 6-letter guess? python  Woo! You got it!

For this exercise, you will be penalized for using any kind of loop construct other than a while loop.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Semantics In Databases Second International Workshop Dagstuhl Castle Germany January 2001 Revised Papers Lncs 2582

Authors: Leopoldo Bertossi ,Gyula O.H. Katona ,Klaus-Dieter Schewe ,Bernhard Thalheim

2003rd Edition

3540009574, 978-3540009573

Students also viewed these Databases questions