A card deck
2016-08-23
0 0 0
no vote
Other
Earn points
This program uses list boxes to display cards in the deck and in the hands. The next version will introduce card graphics like those used in Solitaire and Hearts games that come with Windows OS.
We will create a TDeck object to contain the cards. For now the cards are just an array of integers from 0 to 51. The suit will be calculated as card nbr div 13 giving a number from 0 to 3. The value of the card is card nbr mod 13 which returns a number from 0 to 12 representing A,2,3... J,Q,K. The TDeck object has 4 important methods: Shuffle - shuffles the deck, GetNextCard to return the next card from the top of the d
delphi
Related Source Codes
MY Function Library
0
0
no vote
DELPHI calls the voice synthesis provided by windo
0
0
no vote
Compare binary file
0
0
no vote
Delphi 7
0
0
no vote
SQL database table structure merge tool
0
0
no vote
No comment