*********************************************
Question1)
I do not know what should be the transitions
between SR and SL?
SR: Right player has the ball
SL: Left player has the ball
Question2)
Also, one of my transitions goes from
SR to SR itself and allows for displaying
the score and idle time, should I have the
same transition from SL to SL ?
Question3)
Should I have a transition from the "move left
to right state" to "SL state" that lets me reset
the game...while the ball is moving?
SL: Left player has the ball
*******************************************
Thanks
Mat
You might need to have a transition from
SL to SR if, for example, the current state
is SL and RESTART is depressed.
> Question2)
> Also, one of my transitions goes from
> SR to SR itself and allows for displaying
> the score and idle time, should I have the
> same transition from SL to SL ?
Yes. You should be able to display the
score from either SR or SL.
>
> Question3)
> Should I have a transition from the "move left
> to right state" to "SL state" that lets me reset
> the game...while the ball is moving?
>
> SL: Left player has the ball
> *******************************************
when RESTART is depressed, the next state should always
be SR. So you should have a transistion from "L-->R"
to SR. However, try NOT to include the RESTART input
in the state table / diagram as this will complicate
things. Simply assign "00" to state SR and so if RESTART
is depressed at any moment, the filp flops will get reset
and the next state will be SR. This applies to all
reset cases including (1) and (3) above.
-- M. M. Khellah