Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / Basic DBC card game routines

Author
Message
Diggsey
18
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 9th Jun 2006 20:33 Edited at: 9th Jun 2006 20:38
Here are some basic card game routines
Only shuffle has been tested, so please tell me if there are any bugs.



num = number of cards in deck
deck$() = array with a string for each card
newcard$ = the card you want to add to the pack
takepos = the position in the deck from where you want to take a card
insertpos = the position in the deck where you want to insert a card
rndmnes = how random you want the pack - the smaller the faster, but less random, the larger the slower, but more random.

There are three types of people, those that can count and those that can't.

Login to post a reply

Server time is: 2024-11-23 03:18:37
Your offset time is: 2024-11-23 03:18:37