James D. wrote:
> I was trying to use FSM but it looks to complicated.
Of course you will need some kind of FSM. Just keep in mind: each simple
counter is a FSM. And you need at least 6 counters counting randomly and
independently from 0 to 9 for your 6 digit "number".
Or do you only have 1 counter counting from 000000 to 999999? That would
not look very "slotmachinelike"...
> I was trying to use FSM but it looks to complicated.
For a slot machine the top FSM ist the one that handles the slot machine
itself: waiting for the start button, spinning the "wheels", evaluating
the result. Your "evaluation" FSM will have to go thru the digits and
compare them.
All in all its a fairly easy job to be done. But first you need a
strategy HOW to find doubles/multiples in the "wheels".
> Needs some help :)
Just show what you have, then we can discuss about how to go further on.
> if the number is
What about 234234?