logo
What's New
What's New
  Popular
Popular
  Top Rated
Top Rated
  Search
Search


Search :  

How to Add Link |   Modify Link   |   Login |     Register  |  Getting Rated |  Link to Us |  Feedback Us


Sponsors
FlashAdvisor.com
Web Directory
phpld Hacks
Software Download
Your Site Link




Categories
    3DS MAX
    ASP
    C And C++
    ColdFusion
    Database
    Dreamweaver
    Flash
    HTML
    Java
    JavaScript
    Linux
    Maya
    MS Excel
    MS PowerPoint
    MS Word
    Paint Shop Pro
    Perl and CGI
    Photoshop
    PHP
    Premiere
    Python
    Visual Basic
    Web Hosting
    XML
 

 

Card Deck and Shuffle
  

Home  » Visual Basic » Miscellaneous  

Card Deck and Shuffle How to create a virtual card deck and shuffle it. While I was creating my black jack game I wanted to make the user feel like they were using an actual deck of cards. To make this illusion even more accurate I decided that I would have the computer keep track of which cards had been used and after all cards had been used I wanted the deck to be shuffled. Therefore I had to figure out a easy way to shuffle the deck. That is how I came up with the following method: First I made an image control array called imgCards that went from 1 to 52. In this array I filled slot (1) with the ace of clubs, slot (2) with the two of clubs, and so on I continued this process until I had all 52 cards put into their corresponding slots. This would make the array look like this:

Hits: 252
Rate:   0.0(out of 5)  
Vote : 0   
Submit Date  : 2006-03-27
Submit By  : tutorial-suite
View Tutorial Card Deck and Shuffle
 Add Review
 Report Error
Rating Graph

0.0%
0.0%
0.0%
0.0%
0.0%
 1  2  3  4  5 
Rate This :
More Tutorials by this user

Basic Calculator
 Basic Calculator
URL linked Label
 URL linked Label
Saving Settings into the registry
 Saving Settings into the registry
Writing a Internet shortcut file
 Writing a Internet shortcut file
Random Numbers
 Random Numbers
Error handler
 Error handler
Display input in a Label
 Display input in a Label
Creating a Clock
 Creating a Clock
  
Home | Sitemap | Feedback | Advertise with us
Best viewed in 800x600 resolution with Internet Explorer.
Site Developed and Hosted by EthicSolutions

Flash Tutorials    TemplateAdvisor.com    WebMastersHome.com

    Reseller Hosting    Reseller Hosting Linux