• Welcome to Dark Bit Factory & Gravity.
 

Card Object

Started by rdc, January 23, 2010

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

rdc

The card object I used to make Yablon can be found here.

The package includes cardobj.bi, the card object, the needed graphic files, cards.bmp, back.bmp, a test program and you can see some screenshots.


rdc

Here is version 0.1.2.

SkyDrive Folder

File Pasta

Pics:





Changelog:


  • Consolidated all graphics to a single bitmap: cards.bmp.
  • Added two graphical placeholders in cards.bmp. See DrawPlaceholder.
  • Added a red joker and a black joker to the cards bitmap. See Enumerations for the joker ids.
  • Added FaceofCard. Returns the face of a card as a string.
  • Added FaceString. Returns the face name as a string.
  • Added SuitofCard. Returns the suit of a card as a string.
  • Added SuitString. Returns the suit name as a string.
  • Added several tutorials on how to use the card object in a program.
  • Updated example program testcard.bas with new additions.

rdc

Card Object v.0.1.3:

    * Added Version function to documentation.
    * Added Shuffle method using the Fisher–Yates algorithm.
    * Added SetCardValue property.
    * Added CValue function.
    * Added Rand function.

New Shuffle method:



Files:

Skydrive

FilePasta