How are the positions of the tiles determined?

How are the positions of the tiles determined? - Woman in White Bathtub With Water

How is the lane/position of each falling tile determined? Is it random or is there a pattern?

I am referring to the mobile game Piano Tiles - Dont Tap The White Tile ( iOS | Android ).



Best Answer

After looking at the code of the game, yes, it does use a random algorithm.




Pictures about "How are the positions of the tiles determined?"

How are the positions of the tiles determined? - Free stock photo of architecture, bathroom, building
How are the positions of the tiles determined? - Beige Bathroom with Sinks and Toilet
How are the positions of the tiles determined? - Black and White Checked Pattern





Determining the Size of the Tiles - Intro to Parallel Programming




More answers regarding how are the positions of the tiles determined?

Answer 2

It depends on the game mode. If you're in a pro mode, then the tiles cannot show up twice in a row. So the game will randomly generate the next tile in one of the three positions the previous tile was not in.

If you are not in pro mode, then it is random. It picks one of the four spots, puts the tile there, goes to the next row, picks one of the four spots, puts the tile there, and repeats.

I have only played the iOS version. I don't see why it would be different in the Android version.

Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Karolina Grabowska, Max Vakhtbovych, Max Vakhtbovych, SHVETS production