Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 04-19-2009, 01:20 PM   #11 (permalink)
XenoSage
New Member
 
Join Date: Mar 2009
Posts: 48
Default

I would suggest doing something more along the lines of not actually changing the index positions of the cards. Instead, use a random number generator and an if check to make sure you havent accessed that position already to retrieve cards from the deck at random.

If this were in java i'd say just use Collections.shuffle(), but i don't know the NSMutableArray equivalent if there is one.
XenoSage is offline   Reply With Quote
 

» Advertisements
» Online Users: 373
19 members and 354 guests
acegames, ADY, apatsufas, BdR, catedawn, ChenXin, dfvdan, gagack, georg8betx, iph_s, joeallenpro, john love, MarkC, RoryHarvey, sadr1an1, technovelty, thebinaryfamily, zacharyse, zbynda
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,875
Threads: 89,225
Posts: 380,699
Top Poster: BrianSlick (7,129)
Welcome to our newest member, georg8betx
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 07:04 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.