From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: daniel@bigwalter.net (Daniel Jensen) Newsgroups: gmane.emacs.devel Subject: Tetris not random enough? Date: Wed, 04 Apr 2007 13:58:42 +0200 Message-ID: <87zm5o1hcd.fsf@orme.bigwalter.net> Reply-To: indiscipline@gmail.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1175688080 14747 80.91.229.12 (4 Apr 2007 12:01:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 4 Apr 2007 12:01:20 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 04 14:01:12 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HZ4AZ-0008Lm-FZ for ged-emacs-devel@m.gmane.org; Wed, 04 Apr 2007 14:00:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HZ4Do-0004Qd-UG for ged-emacs-devel@m.gmane.org; Wed, 04 Apr 2007 08:04:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HZ4Cr-0003W8-G4 for emacs-devel@gnu.org; Wed, 04 Apr 2007 08:03:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HZ4Co-0003Su-Bb for emacs-devel@gnu.org; Wed, 04 Apr 2007 08:03:16 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HZ4Cn-0003SO-Tz for emacs-devel@gnu.org; Wed, 04 Apr 2007 08:03:14 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HZ49X-0003AW-K4 for emacs-devel@gnu.org; Wed, 04 Apr 2007 07:59:51 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HZ49M-0004SD-M4 for emacs-devel@gnu.org; Wed, 04 Apr 2007 13:59:40 +0200 Original-Received: from 217-211-191-67-no39.tbcn.telia.com ([217.211.191.67]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 04 Apr 2007 13:59:40 +0200 Original-Received: from indiscipline by 217-211-191-67-no39.tbcn.telia.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 04 Apr 2007 13:59:40 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 11 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 217-211-191-67-no39.tbcn.telia.com X-Face: SNGmwsN&0DaHhS0!*%\@y"Wc^).,<; VsqY#}K/NJ:A Z6_>Md7x$Z9C1%BAu41M'12-8(f2{H*8OsnYv,K+y.szl1K>}{uC/>2?; k[KUiD=$}@z>odk|7Tk7i $A|{j7LhTt!:SdVp5Z, kKA247}--"-QLedxCbw|#&bh=R]Rd)kx{q+T'fG)9ayG`+\@g'3vx1Fd3bl -`3}Guvr!A"Z);"$|]CXW>YR5m"<[L Mail-Copies-To: never User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.95 (gnu/linux) Cancel-Lock: sha1:YAympx0TnCUBJFcYWxsOziIeniA= X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:69043 Archived-At: 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.