Skip to main content
10 events
when toggle format what by license comment
S May 11, 2015 at 13:55 history suggested Alex
Tag cleanup
May 11, 2015 at 13:31 review Suggested edits
S May 11, 2015 at 13:55
Nov 6, 2012 at 16:00 history edited Nate CC BY-SA 3.0
removed code that was not part of the question
Oct 11, 2012 at 11:37 answer added vanDee timeline score: 4
Oct 11, 2012 at 1:32 review Close votes
Nov 6, 2012 at 16:00
Oct 11, 2012 at 1:28 history edited doppelgreener CC BY-SA 3.0
Those braces were messing up your code block.
Oct 10, 2012 at 23:53 answer added Engineer timeline score: 1
Oct 10, 2012 at 14:42 comment added Markus von Broady Welcome to gamedev! Please read the site's FAQ gamedev.stackexchange.com/faq and specify the problem you face instead of showing source code. To position tiles randomly, you want to have a grid of tiles (e.g. Array of arrays of tiles) iterate through them and swap each iterated tile with other tile at random indexes, e.g. for ( i = 0; i < ROWS; i++ ) for ( j = 0; j < COLS; j++) swapTiles(grid[i][j], grid[Math.random()*ROWS][Math.random()*COLS]);
Oct 10, 2012 at 13:06 review First posts
Oct 15, 2012 at 12:31
Oct 10, 2012 at 13:06 history asked GalneGunnar CC BY-SA 3.0