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.