Blackjack for DOORS

blackjack1Blackjack outnumbers other casino table games by a margin of about two to one. The game is so immensely popular because, when played correctly, it offers better odds than any other game. The purpose of the game is to get a hand total higher than the dealer’s without going over a count of 21. You play against the dealer, not against other players at the table. Whatever hand you end up with must be 21 or less, but higher than what the dealer has.

The implemntation of the rules of the game is quite simple, but the use of a canvas to display the cards is more interesting and shows how a primitive form of animation can be achieved with DXL.

The download is packaged as a zip file and contains a single DXL file and an images directory containing bitmaps of a deck of cards. Download the zip file and extract files to a location of your choice. You will need to edit blackjack.dxl and change the IMAGE_DIRECTORY path to match your installation directory.