[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [pbmserv-dev] Change to the random algorithm
Yes, the seed and the number of times rand has been called
is stored in the board file
(random seed n)
Undo does not automatically do the resetting of the seed, etc.
yet. We need to look into that, but it could.
The main updates were game.h and game.cpp. (to add the random field)
Additionally, all programs that used rand() in their code were also
updated... so...
backgammon.cpp
cardgame.cpp
chex.cpp
dots.cpp
es_entropy.cpp
life.cpp (which is a copy of dots, not life, but a place holder)
moultezim.cpp
plakoto.cpp
powerdrain.cpp
scramble.cpp
On Wed, Jul 25, 2001 at 03:53:10PM -0500, Douglas Zander wrote:
> do you mean that the "seed" is also stored in the file along with
> the number of times that rand() was called? If this is true then
> would an undo work automatically or does the programmer still need
> to do something special for a game with rand() calls? (I would
> assume that an undo would automatically look for the seed)
> Also, I wish to ask which files were updated, I would like to have
> the newest files for my testing server.
>
> --
> Douglas Zander |
> dzander@solaria.sol.net |
> Milwaukee, Wisconsin, USA |
>
>
>
> To unsubscribe, send a message to esquire@gamerz.net with
> unsubscribe pbmserv-dev
> as the BODY of the message. The SUBJECT is ignored.
>
--
/ \__ | Richard Rognlie / Sendmail Ninja / Gamerz.NET Lackey
\__/ \ | http://www.gamerz.net/rrognlie/ <rrognlie@gamerz.net>
/ \__/ | find / -name "*base*" -exec chown us:us {} \;
\__/ | Anything worth doing is worth paying somebody else to do well