Slot Machine Flow Diagram [Closed]

Asked 2 years ago, Updated 2 years ago, 47 views

Do you want to improve this question?Edit this post and update the question to focus on one issue

Closed 7 years ago.

7 years ago

I'd like to make a flow diagram of the slot machine.

When you press the start button, each of the three squares will roll.
Each square has a number from 1 to 9.
There are three stop buttons to stop each square.
If the three numbers are aligned, it is displayed as a hit.
If the three numbers are not aligned, it is displayed as missing.
(If you don't press the stop button, it stops automatically in 10 seconds.)

How do you make it with this specification?
Also, I don't need to repeat it, do I?

algorithm

2022-09-30 20:51

2 Answers

Probably. Repeat processing = If certain conditions are not met, I think it refers to repeat processing again, so

If you don't press the stop button, it will stop in 10 seconds. If you write the condition more accurately, it's probably the movement of the slot machine, so

The slot machine keeps moving, or moving, until either is satisfied.
Now, let's think about what we're going to repeat.Actually, I have already written the answer.

The number of slot machines stops when one or two conditions are met.
Determine if all three numbers are the same when stopped.

There are some things you can't understand if you write only letters, so it's a flow chart, so it's better to show it.


2022-09-30 20:51

The environment is not written, but will only logic be dropped into the flow?

>I don't need to repeat it, do I?
Why did they think so?
Whether you want to display numbers or wait for 10 seconds to press the button,
I don't think I can do anything without repeating (unless I process the event)?


2022-09-30 20:51

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.