How to Shuffle NSMutableArray in XCode

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.
1 points blackshtef 15 years ago 0 comments

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton