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 / Card Shuffler

Author
Message
Preston C
21
Years of Service
User Offline
Joined: 16th May 2003
Location: Penn State University Park
Posted: 11th Aug 2003 05:34
Though it only shuffles 52 numbers, it shuffles like it was a deck of cards. Will be adding card detection later, so you could differentiate the different cards. This code also writes the current deck to a txt file, for easy viewing.
[url="http://www.neowolfgames.tk"]http://www.angelfire.com/ex/animezonex0/NeoWolfGamesBaner.JPG[/img][/url]
Preston C
21
Years of Service
User Offline
Joined: 16th May 2003
Location: Penn State University Park
Posted: 11th Aug 2003 05:35
Oh yeah, its DBC, not tested in Pro, sorry about that.

[url="http://www.neowolfgames.tk"][/url]
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 11th Aug 2003 07:34
how about you clean up the program correctly instead of leaving all those arrays undimmed at the end of your code.

why dont people care about clean up amazes me.

Hell IVIonkey
21
Years of Service
User Offline
Joined: 1st Apr 2003
Location: Outer Limits
Posted: 11th Aug 2003 08:06
Come on man, it's not so terrible that he forgot. The main point of the code is the function it performs. And it did what it's supposed to do well.

indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 11th Aug 2003 09:21
no its sloppy and can cause errors later.
practise being neat now will save a tonne of problems later.

indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 11th Aug 2003 09:22
at least we dont have to mess around like in C ill give you that.

Login to post a reply

Server time is: 2024-11-27 19:39:28
Your offset time is: 2024-11-27 19:39:28