+ 2

Wheel of fortune

Hello! Newbie here asking for a help in this game I am trying to make but I find it hard to finish. Here’s how this game works The game starts by inputting a phrase or a sentence. Then the player tries to guess it. The phrase or the sentence is initially represented by a row of dashes(one dash per letter, separated by spaces) The player has 3 possible actions per turn, namely: 1) Spin the wheel. This action will randomly choose an element from a list of wheel ‘values’. If the value is not ‘BANKRUPT’, then the player will guess a consonant. If the suggested letter occurs in the phrase or sentence, all instances of the letter are shown in the correct positions. The value of the list element is then added to the prize pool. If the value is ‘BANKRUPT’, the player forfeits his/her turn, and the prize pool resets to 0. Values=[‘BANKRUPT’,500,550,600,650,700,750,800,850,2500] 2) Buy a vowel. The player will choose a vowel, and all instances of the letter are shown in the correct positions. This action costs 250, thus, if the prize pool is less than that, this action should not continue. 3) Solve the puzzle. The player will enter a phrase or sentence, and if it matches the entire phrase or sentence, the game ends and the player wins a total amount equal to the prize pool.

23rd Oct 2019, 7:13 AM
Seca
7 Respuestas
+ 2
to make correct guesses show up, I did something like this in my hangman program if userInput in word: for x in range(len(word)): if userInput == word[x]: underscores[x] = userInput + " " I made two arrays- one array (word) was a randomly picked word, and the other array (underscores) is the same amount of underscores as the first array’s letters. if the user’s guess is correct, it will fill in the second array by checking through each index of the first array. if it’s incorrect, it skips over and is marked an incorrect guess. (the added space at the end of the last if statement is for aesthetic purposes, so it shows up like t h _ s) Do you mind if I give this project a go at some point? I’ll make sure to share my code here at some point if you do end up allowing me :)
23rd Oct 2019, 8:02 AM
꧁༺ Jenspi ༻꧂
꧁༺ Jenspi ༻꧂ - avatar
+ 1
Jenny 🎃🧡🖤 yes please and thank you
23rd Oct 2019, 8:04 AM
Seca
+ 1
Miika I started on it and some of my codes arent functioning huhuhu
23rd Oct 2019, 8:05 AM
Seca
0
here’s the sample simulation
23rd Oct 2019, 7:13 AM
Seca
0
please enter a string for the player to guess: HELLO WORLD (program clears screen so guessing player does not see the string) Guess the phrase: - - - - - - - - - - 1) Spin the Wheel 2) Buy a vowel 3) Solve the puzzle Unused consonants: BCDFGHJKLMNPQRSTVWXYZ unused vowels: AEIOU Prize pool: 0 Enter action: 1 The Wheel lands at 600 Enter consonant: H H is found! and then it continuous like it until it is guessed
23rd Oct 2019, 7:18 AM
Seca
0
but the guessed letter should always be removed from the unused consonants. and same thing with the vowels
23rd Oct 2019, 7:19 AM
Seca
0
ill post my codes later
23rd Oct 2019, 8:08 AM
Seca