Project Proposal - Main Control
This entry contains the continuation of our project propsal, found here, and continuing from here.
The following is taken from our project proposal:
3.3 Main ControlThe main control will be a module in itself within Simulink, but have no physical representation other than the xPC Target and/or Host. Its functionality will be transparent to all other layers, and it will primarily communicate with the dealer-cart because the main control believes this to be the only thing it can control. It will also communicate with a user interface, however that is implemented (either hard coded or through actual buttons). Therefore, it will send whatever signals necessary for not only dealing whatever game it believes it is playing but for dealing cards to play the game.
For example, if playing blackjack, it would first deal the game: one card up and one down to the dealer, and two cards up to the user. Then it starts playing, by waiting for the user to “hit” and then dealing the appropriate cards until they “stay.” If the user “busts” the game is over, if not, it will hit until it either beats the player or busts. The main control would have to send to the dealing-cart only the necessary cards to deal for this interaction, thus keeping the game completely transparent to the dealing-cart.