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

References (1 earlier) <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 2012-11-24 09:32 +1100
Subject Re: Getting a seeded value from a list
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.245.1353709970.29569.python-list@python.org> (permalink)

Show all headers | 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