Game Rules
How to work with Projects
Hangman rules
Function plan
Final playable game version
Preparation for the Hangman!
First, we need to import the libraries required for the game and define new functions.
The first function, named load_words()
, is used to retrieve all words from a given file. One random word from this file will be chosen for the game process in the future.
Aufgabe
Swipe to start coding
- Import the
random
library. - Import the
string
library. - Define the
load_words
function to load words from a file. - Initialize the
word_list
variable to store the words for the game. - Return the
word_list
.
Lösung
Mark tasks as Completed
War alles klar?
Danke für Ihr Feedback!
Abschnitt 1. Kapitel 1
Fragen Sie AI
Fragen Sie AI
Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen
Awesome!
Completion rate improved to 11.11
Game Rules
How to work with Projects
Hangman rules
Function plan
Final playable game version
Preparation for the Hangman!
First, we need to import the libraries required for the game and define new functions.
The first function, named load_words()
, is used to retrieve all words from a given file. One random word from this file will be chosen for the game process in the future.
Aufgabe
Swipe to start coding
- Import the
random
library. - Import the
string
library. - Define the
load_words
function to load words from a file. - Initialize the
word_list
variable to store the words for the game. - Return the
word_list
.
Lösung
Mark tasks as Completed
War alles klar?
Danke für Ihr Feedback!
Abschnitt 1. Kapitel 1