In jupyter notebook create a ipynb file. Write a code regarding a game presented in a flowchart (file attached). write a code with user interaction that uses all the file input/output features...

1 answer below »
In jupyter notebook create a ipynb file. Write a code regarding a game presented in a flowchart (file attached). write a code with user interaction that uses all the file input/output features including docstring, classes, function, list and str methods, if/else, try/except, true/false; YOU MUST VALIDATE ALL USER INPUT AND ALWAYS GIVE FRIENDLY ERROR MESSAGES.it is also important to have a control loop (outer loop) so that the player can quit the game when he/she wants; write the code for the game and explain its functionality; the game has to be functional without any error in order to get full points; explain the behavior of your code by writing plenty of good comments.From now on, you MUST ALWAYS explain your code: documentation is crucial in programming and I want everyone to practice it, no matter how simple your code is; remember to use the triple single comment at the beginning of your function to document it.In order to practice Python for data analysis, you might want to choose mathematical/numeric processes or preferably textual ones that can lend themselves as text analysis.


Game Flowchart February 27th, 2022 Game Name: Balance Beam This is a strategic game of navigating a board using commands to either walk forward or ensure the player is well balanced to not fall off of the log. The difficulty is based on the level of difficulty set from the main menu. This is where the player can read instructions and exit after each round. Each stage provides check points a player can return to if they fall off the log after making significant headway. This is to ensure the player does not have to start over but advance from their previous progress. The results of their performance are displayed and saved upon completion. Pseudocode: Launch Application Main Menu Selection If Quit Game = “Yes” Then END GAME While Quit Game = “No” Menu Selection If Instructions = “Yes” Then Instruction Screen If Back = “Yes” Then Menu Selection If Play = “Yes” Then Level Select If Level = Easy Then Calibrate Board Easy Level If Level = Hard Then Calibrate Board Hard Level For Load Level = Level Selected While Checkpoint saved Command Navigation If Balance Board Data = “Outside Threshold” Then Fall off Log Continue //Start while loop by returning to checkpoint Walk Forward Complete Navigation If Logic Check = Incorrect Then save Checkpoint Continue //Start while loop by returning to checkpoint Else Puzzle Solved Result Screen If Result = “Next Level” Then Level = Level + 1 End//Exit checkpoint loop by returning to Load Level loop If Result = “Quit” Then Quit Game = “Yes” End //Exit checkpoint loop by returning to Load Level loop End //Exit Load level loop by returning to Main Menu loop If Result = Main Menu Then End //Exit checkpoint loop by returning to Load Level loop Continue //Start while loop by returning to Main Menu loop END GAME
Answered 2 days AfterMar 02, 2022

Answer To: In jupyter notebook create a ipynb file. Write a code regarding a game presented in a flowchart...

Sathishkumar answered on Mar 03 2022
115 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here