Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Leer 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.

Taak

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.

Oplossing

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

Mark tasks as Completed
Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 1. Hoofdstuk 9
AVAILABLE TO ULTIMATE ONLY
some-alt