<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>IPDweek7 by </title>
      <link>https://padlet.com/houguanyu/mnwbqydpnsenwhuj</link>
      <description></description>
      <language>en-us</language>
      <pubDate>2023-11-17 02:36:15 UTC</pubDate>
      <lastBuildDate>2023-11-17 03:38:02 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url></url>
      </image>
      <item>
         <title>Task 1: Select random word from the word bank</title>
         <author>houguanyu</author>
         <link>https://padlet.com/houguanyu/mnwbqydpnsenwhuj/wish/2793356746</link>
         <description><![CDATA[<var>Difficulty: ★★★★</var><p><br></p><p>Implement select_word() function to select a random word from the wordbank (the file specified by parameter filepath). The function should return the selected word as a string.</p><p><br></p><p>After you complete the implementation, run `tests/select_word_<a rel="noopener noreferrer nofollow" href="http://test.py">test.py</a>` to test your code.</p>]]></description>
         <enclosure url="" />
         <pubDate>2023-11-17 02:36:15 UTC</pubDate>
         <guid>https://padlet.com/houguanyu/mnwbqydpnsenwhuj/wish/2793356746</guid>
      </item>
      <item>
         <title>Task 2: Jumble word</title>
         <author>houguanyu</author>
         <link>https://padlet.com/houguanyu/mnwbqydpnsenwhuj/wish/2793356747</link>
         <description><![CDATA[<var>Difficulty: ★★★★☆</var><p><br></p><p>Implement jumble_word() function, which receives an English word as parameter and returns a string with the letters of the word in shuffled order, e.g. 'design' =&gt; 'igdnes'</p><p><br></p><p>After you complete the implementation, run `tests/jumble_word_<a rel="noopener noreferrer nofollow" href="http://test.py">test.py</a>` to test your code.</p>]]></description>
         <enclosure url="" />
         <pubDate>2023-11-17 02:36:15 UTC</pubDate>
         <guid>https://padlet.com/houguanyu/mnwbqydpnsenwhuj/wish/2793356747</guid>
      </item>
      <item>
         <title>Task 3: Add new words to the wordbank</title>
         <author>houguanyu</author>
         <link>https://padlet.com/houguanyu/mnwbqydpnsenwhuj/wish/2793356750</link>
         <description><![CDATA[<var>Difficulty: ★★★☆</var><p><br></p><p>Implement add_word() function to append new words to the wordbank (the file specified by the parameter filepath). The function should ask user to input new words then append these new words to the end of the wordbank file.</p><p><br></p><p>Open the attached PDF to see how it works.</p>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/2221219998/74920b0ab114b8a3adc7fc5af7566baa/Add_word.pdf" />
         <pubDate>2023-11-17 02:36:15 UTC</pubDate>
         <guid>https://padlet.com/houguanyu/mnwbqydpnsenwhuj/wish/2793356750</guid>
      </item>
      <item>
         <title>Task 4: Check user answer</title>
         <author>houguanyu</author>
         <link>https://padlet.com/houguanyu/mnwbqydpnsenwhuj/wish/2793356752</link>
         <description><![CDATA[<var>Difficulty: ★</var><p><br></p><p>Implement check_answer() function to check whether the user has correct guessed the original word. This function receives two strings as parameters, the original word and the user's answer. It should return True if the user's answer matches the original word (case insensitive) and False if not.</p><p><br></p><p>After you complete the implementation, run `tests/check_answer_<a rel="noopener noreferrer nofollow" href="http://test.py">test.py</a>` to test your code.</p>]]></description>
         <enclosure url="" />
         <pubDate>2023-11-17 02:36:15 UTC</pubDate>
         <guid>https://padlet.com/houguanyu/mnwbqydpnsenwhuj/wish/2793356752</guid>
      </item>
      <item>
         <title>Task 5: Get user command</title>
         <author>houguanyu</author>
         <link>https://padlet.com/houguanyu/mnwbqydpnsenwhuj/wish/2793356754</link>
         <description><![CDATA[<var>Difficulty: ★★</var><p><br></p><p>Implement get_user_command() function to allow user to choose whether they want to 1. play the jumble game; 2. add new words to the wordbank; or 0. exit the program. The function should return the user's choice as an integer.</p>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/2221219998/401f55c6830ecd0566ad69002604494f/get_user_command__.png" />
         <pubDate>2023-11-17 02:36:15 UTC</pubDate>
         <guid>https://padlet.com/houguanyu/mnwbqydpnsenwhuj/wish/2793356754</guid>
      </item>
      <item>
         <title>Task 6: Play the jumble game</title>
         <author>houguanyu</author>
         <link>https://padlet.com/houguanyu/mnwbqydpnsenwhuj/wish/2793356755</link>
         <description><![CDATA[<var>Difficulty: ★★</var><p><br></p><p><strong><mark>This task depends on task 5</mark></strong><mark>: Get user command. Please make sure task 5 is completed </mark><strong><em><mark>and merged</mark></em></strong><mark> before you embark on this one.</mark></p><p><br></p><p>Implement play() function to display the jumbled word to user, gets user answer, and  tell the user whether their guess is correct</p><p><br></p><p>Check the attached PDF for details</p>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/2221219998/bc91c2bc71e67e8538401a1ed8cf9487/play.pdf" />
         <pubDate>2023-11-17 02:36:15 UTC</pubDate>
         <guid>https://padlet.com/houguanyu/mnwbqydpnsenwhuj/wish/2793356755</guid>
      </item>
      <item>
         <title>Task 7: Validate user command</title>
         <author>houguanyu</author>
         <link>https://padlet.com/houguanyu/mnwbqydpnsenwhuj/wish/2793356756</link>
         <description><![CDATA[<var>Difficulty: ★★★★</var><p><br></p><p><strong><mark>This task depends on task 5</mark></strong><mark>: Get user command. Please make sure task 5 is completed </mark><strong><em><mark>and merged</mark></em></strong><mark> before you embark on this one.</mark></p><p><br></p><p>In get_user_command() function, we give user 3 options: 1. play the jumble game; 2. add new words to the wordbank; and 0. exit the program. But we cannot trust our user to always input a valid option: they could enter 3, 4, -1, or worse yet, they might enter a non-numeric string (e.g. "good morning") which will crash our program with a ValueError. </p><p><br></p><p>Please modify get_user_command() function to make sure that user has entered a valid option.</p>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/2221219998/4c8a1421f1b494ed70923f7f1c97e612/validate_user_command.png" />
         <pubDate>2023-11-17 02:36:15 UTC</pubDate>
         <guid>https://padlet.com/houguanyu/mnwbqydpnsenwhuj/wish/2793356756</guid>
      </item>
      <item>
         <title>Task 8: Give user 5 chances to guess the word</title>
         <author>houguanyu</author>
         <link>https://padlet.com/houguanyu/mnwbqydpnsenwhuj/wish/2793356757</link>
         <description><![CDATA[<var>Difficulty: ★★★</var><p><br></p><p><strong><mark>This task depends on task 6: Play the jumble game. </mark></strong><mark>Please make sure that task 6 is completed </mark><strong><em><mark>and merged</mark></em></strong><mark> before you embark on this one.</mark></p><p><br></p><p>In the first implementation of play(), the user has only one chance to guess the word. Modify the function to give the user 5 chances to give the correct answer. Declare that they lose the game if they're not able to get the correct word with 5 guesses.</p><p><br></p><p>Open the attached PDF to see how it works.</p>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/2221219998/31cf60c9448490ad1b50834dabcb1647/5_chances.pdf" />
         <pubDate>2023-11-17 02:36:15 UTC</pubDate>
         <guid>https://padlet.com/houguanyu/mnwbqydpnsenwhuj/wish/2793356757</guid>
      </item>
      <item>
         <title>Task 9: Give user a hint</title>
         <author>houguanyu</author>
         <link>https://padlet.com/houguanyu/mnwbqydpnsenwhuj/wish/2793356758</link>
         <description><![CDATA[<var>Difficulty: ★★★★</var><p><br></p><p><strong><mark>This Task depends on task 4: Check user answer.</mark></strong><mark> Please make sure task 4 is completed </mark><strong><em><mark>and merged </mark></em></strong><mark>before you embark on this one.</mark></p><p><br></p><p>Modify check_answer() function to give user a hint on the letters they get right and they letters get wrong (look at the attached PDF for details). This function should still return a Boolean that tells us whether the user has guessed correctly.</p>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/2221219998/c68a240a3e458e1b1a3b9933d3d0f36f/hint.pdf" />
         <pubDate>2023-11-17 02:36:15 UTC</pubDate>
         <guid>https://padlet.com/houguanyu/mnwbqydpnsenwhuj/wish/2793356758</guid>
      </item>
   </channel>
</rss>
