Code Challenge 02 – Word Values Part II – A Simple Game
Blog post from Pybites
Participants are tasked with creating a Scrabble-like game where they form the highest-value word possible from a random set of seven letters drawn from a predefined pouch, which ensures a balanced distribution of vowels and consonants. Players must validate that their chosen word is composed of the drawn letters and exists in the provided dictionary, with the game's scoring system comparing the player's word value against the optimal word value. The challenge encourages participants to utilize two previously introduced functions, calc_word_value and max_word_value, to determine word values and optimal words. While the task provides two template options for coding—one with guidance and one without—it emphasizes creativity and learning through optional features like score tracking, hints, or even developing a web or mobile app. The exercise promotes Python programming skills and invites participants to fork a GitHub repository to begin coding.