How to Shuffle NSMutableArray in XCode

http://www.planet1107.net/?p=73
by blackshtef • 15 years ago
1 0 15 years ago

Most of puzzle games use some kind of shuffle algorithm. For example, memory games would be really boring to play without tiles shuffle before you start playing game, if you solved it once you would remember position of most tiles. Same thing is with card games, before playing game you need to shuffle deck. Very often when programming such games you’ll store values in mutable array.

Related Stories

Loading related stories...

Source preview

planet1107.net