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 agoI'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?
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.
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)?
578 Understanding How to Configure Google API Key
613 GDB gets version error when attempting to debug with the Presense SDK (IDE)
922 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
573 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
623 Uncaught (inpromise) Error on Electron: An object could not be cloned
© 2024 OneMinuteCode. All rights reserved.