| about | help | code help+videos | done | prefs |
jotto_game
The function jotto_game(target) will use the guesser strategy defined in the previous exercise to make guesses against target, and should return a game history: a list of [guess, reply] pairs, ending with a reply of 5. Of course, the guesser function does not get to look at the target. The jotto_game program is responsible for updating the list of possible words and feeding it to the guesser function. You should use the same dictionary as from the first jotto exercise. (Note: if you get a "timed out" message, see the hint.) jotto_game('ready') → [['delay', 4], ['deals', 3], ['early', 4], ['ready', 5]] jotto_game('years') → [['delay', 3], ['yards', 4], ['diary', 3], ['years', 5]] jotto_game('might') → [['delay', 0], ['brown', 0], ['might', 5]] ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 496 Post-solution available
Copyright Nick Parlante 2017 - privacy