A5 Spy Games Mission Briefing

Situational Summary: Every now and then, our unit hits a slow period, with not much happening out in the world of espionage. That’s good news for everyone, since it means that there aren’t many active threats to which

we must respond. But, it can make for a boring few days around the office. Let’s write something to help

us alleviate our boredom on those days. Let’s make a game that will help us keep our minds focused.

Mission Skills to be Obtained: Implement looping branching arrays and functions in C-F-F

Mission Details:

/

c

The game we write will be related to spycraft in that the player must use logic to try to crack the code that opens a safe. The safe is opened by entering 4 single digit numbers. Numbers can be repeated, and any number 0 – 9 is allowed. If the 4 numbers entered by the player are the correct ones and in the correct order, then and only then is the safe opened. In this game, the numbers will be chosen randomly and the•player only gets 12 guesses. ‘ ‘ V\\ , id Two things are given to the player to help him or her find the correct sequence of numbers. First, the player is told at the beginning of the game the sum of the four numbers. Second, after every turn, the player is told how many numbers were correctly guessed and 1) placed in the correct location or 2) p11ced in the wrong location. An example game play for a secret code of ‘9 3 0 0’ is below, with the player’s input in blue, bold italics and the computer’s output in normal font:

The sum of the numbers is 12. Please enter your guesses as 4 numbers ti G ss 1.

u? 2.

z s 4 Right 5 6 7 8 Right 9 0 I 2 Right 9,0 8 9

Guess 3 0 Guess 6. 9 2 Guess 7. 9 3

Right 8 7 Right 0 3 Right 0 0 Right

#’s: Right #’s: Right #’s: Right #’s: Right #’s: Right #’s: Right #’s: Right

You cracked the safe! You win!

separated by spaces.

Loc. – 0, Wrong Loc.

Loc. – 0, Wrong Loc. (1 Loc. 1, Wrong T.

Loc. -.a,

Loc. – 0,

Loc. – 2,

Loc. – 4,

Wrong Loc. – 1 Wr6r4 Loc. – 2 Wrong Loc. – 1 Wrong Loc. – 0

Mission Briefing Page 1

TAKE ADVANTAGE OF OUR PROMOTIONAL DISCOUNT DISPLAYED ON THE WEBSITE AND GET A DISCOUNT FOR YOUR PAPER NOW!

© 2020 customphdthesis.com. All Rights Reserved. | Disclaimer: for assistance purposes only. These custom papers should be used with proper reference.