Design Method - BJACK
| State Identifier
|
Description |
| Clear
| Clear the state machine, adder, and displays.
|
| ShowHit
| Indicate that another card is needed. Light the HIT indicator.
|
| AddCard
| Add the adder input to the current count.
|
| Add10
| Add 10 to the current count, giving an ace a value of 11.
|
| Wait
| Wait until a card is taken from the reader.
|
| Test17
| Test the current count for a value less than 17.
|
| Test22
| Test the current count for a value less than 22.
|
| Sub10
| Add -10 to the count, restoring an ace to 1.
|
| ShowBust
| Indicate no more cards are needed. Light the BUST indicator.
|
| ShowStand
| Indicate no more cards are needed. Hit and BUST are not lit.
|