Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Upon system reset, or at the start of a new game, the sequence length is set to one. The sequence length corresponds to the user
Upon system reset, or at the start of a new game, the sequence length is set to one.
The sequence length corresponds to the users score.
Upon system reset, and on each turn of gameplay, Simon begins a level by
producing a tone on the buzzer and illuminating two segments of the segment
display see Table Simon will play a tone and illuminate two segments for all
steps in the sequence determined in Section B Each step is active for of the
duration of the playback delay see Section C after which the buzzer is silent and
the segment display is blank, for the remainder of the playback delay. Following
this, the next step in the sequence will be active.
Once the sequence length is reached, the user must press the pushbuttons
corresponding to the steps in the same sequence. As each pushbutton is pressed,
the corresponding segments of the segment display are illuminated, and the
corresponding tone is sounded. This occurs for either: of the duration of the
playback delay, or the duration of the button press, whichever is longer.
If the users sequence matches Simons the SUCCESS pattern is displayed for the
playback delay. Finally, the sequence length, which is equal to the users score, is
increased by one.
The next turn replicates the steps from the previous sequence, while appending an
additional step at the end.
The game repeats until the user fails to match Simons sequence, or when the
maximum sequence length is reached.
The game ends as soon as an incorrect input is provided by the user. This causes the
FAIL pattern to be displayed for the playback delay, followed by the users score,
which is also displayed for the playback delay. Following this, the segment display
will remain blank for the playback delay. After this, the sequence length is reset
back to one and a new game will begin.
The users score is displayed as a decimal number between and on the
segment display. In the unlikely event that a score exceeds the two least
significant digits will be displayed. Leading zeroes will be shown only if the score
exceeds For example, if the users score is will be shown, however, if the
users score is will be shown.
The SUCCESS pattern requires all segments on both displays to be illuminated.
The FAIL pattern requires the G segment on both displays to be illuminated.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started