Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Functional requirements (Game skeleton) As this is a programming assessment and not a game design one, here is a game skeleton to guide you in

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

Functional requirements (Game skeleton) As this is a programming assessment and not a game design one, here is a game skeleton to guide you in the creative part. You need to follow it (scenes +detailed functional requirement) it but, you may add a few extra steps (there is an example of an optional action) and/or change the order of scene/actions. Scenes Detailed Functional Requirement Example Scene 1 - work Show text "you are at work" Keep asking action "turn it off and on again" Show text (optional) Go home Scene 2 - at home Show text door Get character informations Name + Weapon Show text (optional) Mistoffelees Scene 3 - on the phone Show text Phone Keep asking action (must include an end game choice) Jacques offers (if reject => ends game) Show text (optional) Watch stream etc Scene 4 - on site Show text Arrive on site Repeating action ('combat one ennemy') Hack the gateway Show text (optional) Open the door Scene 5 - safeboxes Show text Play CS:WWO Serie of repeating actions ('combat multiple ennemies') Hack multiple safeboxes Show text (optional) all boxes opened Scene 6 - getaway Show text something is beeping Action (with at least 2 alternatives) Handle fallback Show text (depends on alternatives) Successful or failed getaway Extra explanation . Show text: the program only shows some text to the user Get character informations: ask the user to either to type a characteristic (e.g. name) or make a choice (e.g. weapon)... these information will be re-used later Keep asking action: the program keep asking the user to make a choice until the right one is chosen (example: pick up the phone) or the player took too much time (example: fallback) Repeating action: the program presents the user with a choice of actions to resolve a combat (or equivalent) several times (example: hack gateway) Serie of repeating actions: a series (more than 1) of similar combat (example: hack multiple safes) Concept requirements (see also the marking rubric) Your code must feature and make use of the following elements (at least of one of each): Declare/define and use variables of types: o int o float o string o list Ask the user to enter a string Ask the user to enter an int or a float - Any int/float requested to the user needs to be converted to the proper type (int/float) Prevent crashes in any situation (thus make sure you test your program) At least one time: your program will keep asking the user to enter something o In General, your program may stop gracefully (no crash) Use a simple loop Use a Nested loop (in addition to the simple loop) Have a conditional with at least 4+ alternatives (It can be nested or chained conditionals) o In practice, "if-elif-elif-else" or "if-else (if-else (if-else)" will do Use 'and' or 'or' operator to combine variables in a condition Organize your code as functions Coding and commenting convention Program is a Python3 one and executable (and without crash). Variable naming must follow the convention given in class - At least 3 letters long, multiple world are connected with underscore no camel case (Like ThisForExample) Valid (no Python keyword) and not too close to a Python keyword/datatype (for example avoid: "integer") - Meaningful, relevant and easy to understand/guess Sufficient and explanatory (meaningful) comments must be provided in any of the following component o loop (any nested loop needs to be commented separatly) o function o block of code (that is not a loop or a function) o 'complicated' line of code (for example: mathematical formula, several operations within a line, etc.) Functional requirements (Game skeleton) As this is a programming assessment and not a game design one, here is a game skeleton to guide you in the creative part. You need to follow it (scenes +detailed functional requirement) it but, you may add a few extra steps (there is an example of an optional action) and/or change the order of scene/actions. Scenes Detailed Functional Requirement Example Scene 1 - work Show text "you are at work" Keep asking action "turn it off and on again" Show text (optional) Go home Scene 2 - at home Show text door Get character informations Name + Weapon Show text (optional) Mistoffelees Scene 3 - on the phone Show text Phone Keep asking action (must include an end game choice) Jacques offers (if reject => ends game) Show text (optional) Watch stream etc Scene 4 - on site Show text Arrive on site Repeating action ('combat one ennemy') Hack the gateway Show text (optional) Open the door Scene 5 - safeboxes Show text Play CS:WWO Serie of repeating actions ('combat multiple ennemies') Hack multiple safeboxes Show text (optional) all boxes opened Scene 6 - getaway Show text something is beeping Action (with at least 2 alternatives) Handle fallback Show text (depends on alternatives) Successful or failed getaway Extra explanation . Show text: the program only shows some text to the user Get character informations: ask the user to either to type a characteristic (e.g. name) or make a choice (e.g. weapon)... these information will be re-used later Keep asking action: the program keep asking the user to make a choice until the right one is chosen (example: pick up the phone) or the player took too much time (example: fallback) Repeating action: the program presents the user with a choice of actions to resolve a combat (or equivalent) several times (example: hack gateway) Serie of repeating actions: a series (more than 1) of similar combat (example: hack multiple safes) Concept requirements (see also the marking rubric) Your code must feature and make use of the following elements (at least of one of each): Declare/define and use variables of types: o int o float o string o list Ask the user to enter a string Ask the user to enter an int or a float - Any int/float requested to the user needs to be converted to the proper type (int/float) Prevent crashes in any situation (thus make sure you test your program) At least one time: your program will keep asking the user to enter something o In General, your program may stop gracefully (no crash) Use a simple loop Use a Nested loop (in addition to the simple loop) Have a conditional with at least 4+ alternatives (It can be nested or chained conditionals) o In practice, "if-elif-elif-else" or "if-else (if-else (if-else)" will do Use 'and' or 'or' operator to combine variables in a condition Organize your code as functions Coding and commenting convention Program is a Python3 one and executable (and without crash). Variable naming must follow the convention given in class - At least 3 letters long, multiple world are connected with underscore no camel case (Like ThisForExample) Valid (no Python keyword) and not too close to a Python keyword/datatype (for example avoid: "integer") - Meaningful, relevant and easy to understand/guess Sufficient and explanatory (meaningful) comments must be provided in any of the following component o loop (any nested loop needs to be commented separatly) o function o block of code (that is not a loop or a function) o 'complicated' line of code (for example: mathematical formula, several operations within a line, etc.)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Video Basics

Authors: Herbert Zettl

6th Edition

0495569437, 9780495569435

More Books

Students also viewed these Accounting questions

Question

Give the size of each matrix. (a) (b) (c) 45 2 3 5 10 10 5

Answered: 1 week ago