Question: Assignment Overview In this assignment you will practice with everything you have learned so far in class to create a custom interactive text based game
Assignment Overview
In this assignment you will practice with everything you have learned so far in class to create a custom
interactive text based game using python 3.7.1.
Background
Some of the very first computerized role-playing games were text based adventures such as Zork,
Oregon Trail, or Legend of the Red Dragon. Often these games involved exploring a location,
encountering a foe or trial, and dying in a spectacularly hilarious way. Other text based games are
based on existing pencil and paper games such as Hangman or Mastermind.
Project Specification
You are going to design a game that your classmates will be able to play in class. You may choose to
create your own role playing game, or program a simple version of an existing game. No matter which
game you choose to program, there are certain things common to all games that you must include:
A set of instructions to direct the player on the rules
A clear goal so the player knows what they are trying to achieve
A means of keeping score to know how well the player performed
A leaderboard saved in a file that is updated every time the game is played
Whether they win or lose, a prompt to ask the user if they want to play again, and make sure
their response is an acceptable answer (yes/no, y/n).
Make sure to check the validity for all of your user inputs throughout the program. Dont let bad input
create errors.
Notes and Hints:
You should start with this program, as with all programs, by breaking the program down into parts.
1. Make a plan: Begin by mapping out the flow of execution in your program. Break it down into
different parts and decide what can be broken out into functions (printing instructions, reading
the leaderboard file, printing out the leaderboard, validating input, etc.). Your flowchart and
pseudocode are part of your deliverables, so take your time to design something that you know
you can code.
2. Reuse where possible: Some of the features and functions that you will need for this project
have already been written in your previous assignments such as input validation or printing
instructions. Find any logic or code that you have already written and turn it into a reusable
function within your program.
3. Test your code often. Make sure you have run through every possible scenario that you
mapped out in your flowchart.
4. Figure out how you will collect the players names and keep score for your leaderboard. For
Hangman, number of letters correctly guessed; for Mastermind, fewest moves to solution; or
for a role playing game, number of foes vanquished. The leaderboard should maintain a list of
the top ten players and their scores. It should be printed out at the end of any gaming session
after the user has indicated that they dont want to play anymore. As new users play, more
names can be added to the leaderboard.
Deliverables
You will be expected to turn in the following files for your final project:
Your code in a single file
A diagram that includes a flowchart of the flow of execution through your code. You can use
an online tool such as LucidChart to create your flowchart, or just use shapes in PowerPoint.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
