Talk:Tetris (Game Boy): Difference between revisions

From TetrisWiki
Jump to navigation Jump to search
*>Lardarse
No edit summary
 
*>Esachs
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Does anyone know how the random garbage is determined in mode B? --[[User:Lardarse|Lardarse]] 00:30, 14 November 2006 (EST)
Does anyone know how the random garbage is determined in mode B? --[[User:Lardarse|Lardarse]] 00:30, 14 November 2006 (EST)
I'm fairly sure it's populated completely randomly on a tile by tile basis up to the height selected, but can't find a source right now - Taratang
== Tetromino randomizer? ==
How does the Tetromino randomizer work? [[User:Esachs|Esachs]] 20:59, 5 March 2007 (EST)
:The randomizer in this game appears to behave the same way as a standard memoryless randomizer. To what detail do you want to know? Do you want a formula that generates a piece sequence with the same statistics (try <code>nextPiece = (rand() & 0x7FFF) * 7 / 32768;</code>), or do you want a formula that generates the exact piece sequence that the game makes ([[Tetris (Sega)#Power-on Pattern|a la Sega Tetris from 1988]])? --[[User:Tepples|Tepples]] 22:54, 5 March 2007 (EST)
Thanks, that's all I needed. [[User:Esachs|Esachs]] 19:04, 6 March 2007 (EST)

Latest revision as of 00:04, 7 March 2007

Does anyone know how the random garbage is determined in mode B? --Lardarse 00:30, 14 November 2006 (EST)

I'm fairly sure it's populated completely randomly on a tile by tile basis up to the height selected, but can't find a source right now - Taratang

Tetromino randomizer?

How does the Tetromino randomizer work? Esachs 20:59, 5 March 2007 (EST)

The randomizer in this game appears to behave the same way as a standard memoryless randomizer. To what detail do you want to know? Do you want a formula that generates a piece sequence with the same statistics (try nextPiece = (rand() & 0x7FFF) * 7 / 32768;), or do you want a formula that generates the exact piece sequence that the game makes (a la Sega Tetris from 1988)? --Tepples 22:54, 5 March 2007 (EST)

Thanks, that's all I needed. Esachs 19:04, 6 March 2007 (EST)