|
@ -19,9 +19,10 @@ void playHangman() { |
|
|
|
|
|
|
|
|
displayRules(); |
|
|
displayRules(); |
|
|
|
|
|
|
|
|
printf("choose the difficulty level: (1 or 2)\n"); |
|
|
|
|
|
|
|
|
printf("choose the difficulty level: (1, 2 or 3)\n"); |
|
|
printf("1. Easy \n"); |
|
|
printf("1. Easy \n"); |
|
|
printf("2. Hard \n"); |
|
|
printf("2. Hard \n"); |
|
|
|
|
|
printf("3. Super hard \n"); |
|
|
scanf("%d", &difficulty); |
|
|
scanf("%d", &difficulty); |
|
|
wordToGuess = selectRandomWord(difficulty); |
|
|
wordToGuess = selectRandomWord(difficulty); |
|
|
|
|
|
|
|
|