all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Tetris not random enough?
@ 2007-04-04 11:58 Daniel Jensen
  2007-04-05  6:28 ` Glenn Morris
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Jensen @ 2007-04-04 11:58 UTC (permalink / raw)
  To: emacs-devel

This may or may not be considered a bug.

The Tetris game does not set a new seed for the random number
generator. With the same random seed in a new Tetris game, the same
shapes will drop -- it is not a "new" game.

A user can work around this by calling (random t), before starting
Tetris, maybe in the init file.

It is possible that this behaviour exists in other Emacs games as
well, but I haven't examined them.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Tetris not random enough?
  2007-04-04 11:58 Tetris not random enough? Daniel Jensen
@ 2007-04-05  6:28 ` Glenn Morris
  0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2007-04-05  6:28 UTC (permalink / raw)
  To: emacs-devel

Daniel Jensen wrote:

> The Tetris game does not set a new seed for the random number
> generator.

Thanks, I fixed this (and a few others).

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-04-05  6:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-04 11:58 Tetris not random enough? Daniel Jensen
2007-04-05  6:28 ` Glenn Morris

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.