Dark Bit Factory &  Gravity

Dark Bit Factory & Gravity

  • September 09, 2010 *
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

Pages: [1]   Go Down

Author Topic: Card Object  (Read 227 times)

0 Members and 1 Guest are viewing this topic.

rdc

  • Sliderules Rule!
  • MOD
  • Pentium
  • *******
  • Karma: 132
  • Offline Offline
  • Posts: 1439
  • Clark Productions
    • View Profile
    • WWW
Card Object
« on: January 23, 2010 »
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

  • Sliderules Rule!
  • MOD
  • Pentium
  • *******
  • Karma: 132
  • Offline Offline
  • Posts: 1439
  • Clark Productions
    • View Profile
    • WWW
Re: Card Object
« Reply #1 on: January 26, 2010 »
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

  • Sliderules Rule!
  • MOD
  • Pentium
  • *******
  • Karma: 132
  • Offline Offline
  • Posts: 1439
  • Clark Productions
    • View Profile
    • WWW
Re: Card Object
« Reply #2 on: February 01, 2010 »
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
Pages: [1]   Go Up
 

 

B l a c k R a i n V.2 by C r i p

Page created in 0.116 seconds with 19 queries.