Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #33869

Re: Getting a seeded value from a list

Path csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.024
X-Spam-Evidence '*H*': 0.95; '*S*': 0.00; 'case.': 0.05; 'nasty': 0.07; 'subject:Getting': 0.09; 'thread,': 0.09; '(where': 0.15; 'sat,': 0.15; '24,': 0.16; '3:27': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'regenerate': 0.16; 'wed,': 0.16; 'wrote:': 0.17; 'instance,': 0.17; 'items.': 0.17; 'previously': 0.18; 'received:209.85.214.174': 0.21; 'constant': 0.22; 'player': 0.23; 'random': 0.24; 'thus': 0.24; 'idea': 0.24; 'header:In-Reply-To:1': 0.25; 'am,': 0.27; 'message- id:@mail.gmail.com': 0.27; 'subject:list': 0.28; 'chris': 0.28; "d'aprano": 0.29; 'steven': 0.29; 'usually': 0.30; 'sense': 0.31; 'goes': 0.33; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'nov': 0.35; 'received:209.85': 0.35; 'really': 0.36; 'except': 0.36; 'but': 0.36; 'depends': 0.36; 'should': 0.36; 'level': 0.37; 'why': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'to:addr:python.org': 0.39; 'received:209.85.214': 0.39; 'where': 0.40; 'header:Received:5': 0.40; 'real': 0.61; 'stay': 0.61; 'time,': 0.62; 'life,': 0.62; 'different': 0.63; 'stated': 0.69; 'absolutely': 0.84; 'fresh.': 0.84; 'games.': 0.84; 'subject:value': 0.84; 'treasure': 0.84; 'why?': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=NStGgISvoQ2dmyg+zeNGRghCnK8+CNxCiTHmOF0dT+U=; b=N+y2ddxVs8+abLOQFdZA5MZ48A+AkMqvbKCmOWBAtmbdMyam0xzo1Z4bgozycxqEHp ea1efmQGg8gz1FTqDuw6ZyhbJ20Gk0J/Or6GVALYZZ3HBw2owY8T8E5lZKAuFxghv/Y3 iczjHB28CaXsuAnPIVRoZU/xDb33Gi4ICGqA/Hvr89qHryGIf1mWUQhfuD0w1XmrFfhe wrkcBKbQmBSmIIEoJZ3lHiP9EhEFHQvF5iKoQUbsXOvmQBySQWKOrLHHckkMoQbpk5G+ Yq6ySzlX37ldcJfDQYVNzBZW1/v+nLFhfzq7OUGPS9U3v247F0bpvkdGsr6IVWhsAb4l OS1Q==
MIME-Version 1.0
In-Reply-To <5B80DD153D7D744689F57F4FB69AF474167D1967@SBECMX007.exchad.jpmchase.net>
References <SNT139-W8C22F3D436702B17D7803A3560@phx.gbl> <mailman.17.1353367913.29569.python-list@python.org> <993b9303-dbca-43f1-9ff4-9677278776b1@googlegroups.com> <mailman.128.1353469287.29569.python-list@python.org> <50ac4ee7$0$21790$c3e8da3$76491128@news.astraweb.com> <5B80DD153D7D744689F57F4FB69AF474167D1967@SBECMX007.exchad.jpmchase.net>
Date Sat, 24 Nov 2012 09:32:46 +1100
Subject Re: Getting a seeded value from a list
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.245.1353709970.29569.python-list@python.org> (permalink)
Lines 30
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1353709970 news.xs4all.nl 6908 [2001:888:2000:d::a6]:48933
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:33869

Show key headers only | View raw


On Sat, Nov 24, 2012 at 3:27 AM, Prasad, Ramit
<ramit.prasad@jpmorgan.com> wrote:
> Steven D'Aprano wrote:
>>
>> On Wed, 21 Nov 2012 14:41:24 +1100, Chris Angelico wrote:
>>
>> > However, this still means that the player will see the exact same level
>> > regenerated every time, absolutely fresh. As previously stated in this
>> > thread, that's not usually a good thing for encounters, treasure, etc.
>> > Once some nasty critter has been killed, he should STAY killed! :)
>>
>> Why? That isn't true in real life, why should it be true for games?
>>
>
> It is not true in all games. I have seen games where treasures
> regenerate in the same location except for key items. Same goes
> for enemies (where only "bosses" do not regenerate). It really
> just depends on the type of game you are playing--designing
> in this case.

Perhaps they regenerate, but do they regenerate from the exact same
random seed? For instance, in Murkon's Refuge, the maps are
handcrafted and thus constant every time you enter a particular level
- but go downstairs and upstairs, and the monsters and treasure
regenerate, different from last time.

Of course, if the idea is that you're rewinding time, then it makes
good sense for you to see the exact same pattern of enemies.

ChrisA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: Getting a seeded value from a list Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-11-19 18:31 -0500
  Re: Getting a seeded value from a list frednotbob@hotmail.ca - 2012-11-19 21:45 -0800
  Re: Getting a seeded value from a list frednotbob@hotmail.ca - 2012-11-19 21:45 -0800
    Re: Getting a seeded value from a list Nobody <nobody@nowhere.com> - 2012-11-20 08:26 +0000
  Re: Getting a seeded value from a list frednotbob@hotmail.ca - 2012-11-20 18:18 -0800
    Re: Getting a seeded value from a list Chris Angelico <rosuav@gmail.com> - 2012-11-21 14:41 +1100
      Re: Getting a seeded value from a list Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-11-21 03:47 +0000
        Re: Getting a seeded value from a list Chris Angelico <rosuav@gmail.com> - 2012-11-21 15:00 +1100
        RE: Getting a seeded value from a list "Prasad, Ramit" <ramit.prasad@jpmorgan.com> - 2012-11-23 16:27 +0000
        Re: Getting a seeded value from a list Chris Angelico <rosuav@gmail.com> - 2012-11-24 09:32 +1100
        RE: Getting a seeded value from a list "Prasad, Ramit" <ramit.prasad@jpmorgan.com> - 2012-11-26 20:17 +0000
          Re: Getting a seeded value from a list Hans Mulder <hansmu@xs4all.nl> - 2012-11-27 02:01 +0100
        Re: Getting a seeded value from a list Chris Angelico <rosuav@gmail.com> - 2012-11-27 07:24 +1100
  Re: Getting a seeded value from a list frednotbob@hotmail.ca - 2012-11-20 18:18 -0800
    Re: Getting a seeded value from a list Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-11-21 03:37 +0000

csiph-web