Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Oppiskele Final Step | Crafting a Classic Hangman Game
Crafting a Classic Hangman Game

book
Final Step

Integrating Everything

Fantastic! Now, it's time to structure the main function to incorporate all the functions we've developed previously.

Tehtävä

Swipe to start coding

  1. Invoke the load_words function to initialize the word_list variable.
  2. Determine the gameword by using the choose_random_word function.
  3. Execute the hangman function.

Ratkaisu

word_list = load_words()
gameword = choose_word_random(word_list)
hangman(gameword)

Mark tasks as Completed
Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 1. Luku 9
AVAILABLE TO ULTIMATE ONLY
some-alt