The Wheel of Fortune
The “Wheel of Fortune” is a new Python practice where you will have to create a text game that replicates a simple version of the famous TV show.
The gameshow is based on solving word puzzles to earn money. All contestants will be shown a number of blank spaces, that make up all of the characters of a common saying. When it is their turn, a contestant will be allowed to guess a consonant that is in the saying. If the contestant guesses correctly, the blank spaces will be replaced by the consonant, and they will be given the opportunity to guess the saying to win a prize.
You must write a command line script (there is no graphical interface) to play the wheel of fortune with the same constraints and rules of the show.
The program will ask you to enter the contestants name and spin the wheel. It will print the puzzle hidden by underscores and ask the players to guess the consonants contained in each saying. Moreover, it will have to store and update the earnings of each player and display the final prize, the saying and the winner if the puzzle is correctly guessed.
As other Python projects at Practity, the wheel of fortune program is divided in several parts that you will have to complete. It is a great Python practice to code “for” and “while” loops, conditional statements and lists. You will also need a few easy libraries like “random” or “string”. Don´t worry if you are not familiar with those libraries, the tasks involving the libraries are very basic. One of the goals of this Python challenge is to get used to reading documentation and learn the basics of new libraries to perform tasks more efficiently.
Connor Jones is a Mechanical Engineer and senior Python developer based in the UK. He holds a PhD of Mechanical Engineering and has participated in several research projects at the Imperial College in London.
DOWNLOAD / CONTENT
After purchase, you will receive an email with a ZIP file. The download is always available on your Practity account.
You will find the following files in the Zip:
- INSTRUCTIONS. A PDF with the project description. It includes a guidelines section and a flow diagram to help you complete the challenge step by step. The project is broken down in several exercises or hints that you may follow in case you need guidance (11 pages).
- A csv with 20 word puzzles.
- SOLUTIONS: A Jupyter Notebook including detailed explanations and comments about how the code works.
WHAT YOU WILL PRACTICE
– Import/read csv files with the CSV library.
– Nested loops.
– Conditional statements and lists.
– String manipulation.
– Loops (while/for).
– List comprehensions.
This Python practice is designed for intermediate students that have finished a Python bootcamp or online course, and want to implement the theory and concepts learnt in the classes.
If you need additional information, do not hesitate to contact us.
1 review for The Wheel of Fortune
Only logged in customers who have purchased this product may leave a review.