Tom's Hardware > Forum > Games General > Console Gaming > Gameboy Radomising?

Gameboy Radomising?

Forum Games General : Console Gaming - Gameboy Radomising?

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

Archived from groups: rec.games.video.nintendo (More info?)

 

Here's one for ya... How come every time I play Tetris, I don't end up
playing the same game?

Since there is no clock in a gameboy like in a computer, and since the
original Tetris on the original gameboy didn't allow anything to be
saved on the game itself, what changing variable is the gameboy using
to generate the 'random' order of pieces?

This one's been bugging like crazy since it first occured to me. I'd
love to hear any explanations!

Sponsored Links
Register or log in to remove.
- 0 +

Archived from groups: rec.games.video.nintendo (More info?)

 

It's generating a random number from a seed. Any computer is capable of
doing this, it just needs a seed, which is usually the clock. Just because
you don't see a time display doesn't mean there isn't a clock. (And I mean
a counting clock not the clock the runs the system). With that said, it's
not really random, but random enough for the purposes of a video game.

<kk@thepopeshinesmyshoes.com> wrote in message
news:1109210635.760153.186650@l41g2000cwc.googlegroups.com...
> Here's one for ya... How come every time I play Tetris, I don't end up
> playing the same game?
>
> Since there is no clock in a gameboy like in a computer, and since the
> original Tetris on the original gameboy didn't allow anything to be
> saved on the game itself, what changing variable is the gameboy using
> to generate the 'random' order of pieces?
>
> This one's been bugging like crazy since it first occured to me. I'd
> love to hear any explanations!
>

Reply to Joe

Archived from groups: rec.games.video.nintendo (More info?)

 

kk@thepopeshinesmyshoes.com wrote:
> Here's one for ya... How come every time I play Tetris, I don't end
up
> playing the same game?
>
> Since there is no clock in a gameboy like in a computer, and since
the
> original Tetris on the original gameboy didn't allow anything to be
> saved on the game itself, what changing variable is the gameboy using
> to generate the 'random' order of pieces?
>
> This one's been bugging like crazy since it first occured to me. I'd
> love to hear any explanations!

Simply put: even if there isn't a clock to get a random number from,
consider this:
>From the moment the gameboy is turned on, an internal random number
generator starts going (either in the hardware or software, it makes no
difference), and generates a new number every .01 seconds (this is just
for argument's sake)

Unless you (1) start the game the exact same number of hundreths of a
second after turning the gameboy on, and (2) you take exactly (to
within .005 seconds) the same time to play each piece (and that is a
cumulative .005 seconds, not .005 per piece), you will get a different
sequence.

There are other ways, but I think you should get the idea from my one
example.

Reply to Anonymous
- 0 +

Archived from groups: rec.games.video.nintendo (More info?)

 

So you're saying the seed is created based on the interval of time between
when the user powers up the machine, and actually hits start. That'd do it.

Reply to JOJO
Tom's Hardware > Forum > Games General > Console Gaming > Gameboy Radomising?
Go to:

There are 1215 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them