Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Share Your Creations
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Share Your Creations Show your developed application to Basic4ppc community. Please include source code if possible.

Shuffling cards (proof of concept)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-27-2007, 08:40 PM
LineCutter's Avatar
Senior Member
 
Join Date: May 2007
Location: Daarsit
Posts: 161
Awards Showcase
Beta Tester 
Total Awards: 1
Default Shuffling cards (proof of concept)

This cropped up in discussion a week or two ago, & I had some quiet time while I was on holiday.
The code is really just a proof of concept, but should be worth a look if anyone is planning a card game.
There are no docs!
The 1-13 are the card values, with H/C/D/S appended to represent suit. Reset recreates an unshuffled deck. Sort... well it sorts the contents of the listbox. Shuffle shouldn't be a challenge!
Filter is the slightly strange option (I need it for something else - not to do with cards). It takes the value of the NumUpDown control & uses that to remove that % of the cards, with positive values removing cards from the low half of the values & negative ones from the high end.
Attached Files
File Type: sbp Shuffle.sbp (2.3 KB, 101 views)
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Quest for pics of game of cards Stellaferox Questions (Windows Mobile) 3 01-25-2008 10:13 PM


All times are GMT. The time now is 12:39 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0