Modern BASIC is a structural language. The objective of this example is to show how various features of BASIC interplay in a design of a card-dealing application.
Here is the description of the situation.
A deck of cards consists of 52 cards. Each card has two attributes:Card games require shuffling the deck, and dealing some number of cards from the top of the deck. The objective of this example is to write a program that will print out the number of requested cards twice. That is, the first player will get as many cards as she requests, and then the second player will get as many cards as he requests (from the rest of the deck!
- Suit (hearts, spades diamonds, and clubs)
- Value (1 through 13)