Beefy Boxes and Bandwidth Generously Provided by pair Networks Ovid
Welcome to the Monastery
 
PerlMonks  

Re: Re: Sainthood via Seniority Simulation

by ysth (Canon)
on Nov 05, 2003 at 01:20 UTC ( [id://304643]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re: Sainthood via Seniority Simulation
in thread Sainthood via Seniority Simulation

I'm not sure I understand you. Can you explain in code or pseudocode? My intent was that everything in the loop after the ++$day is events occurring during the course of a day. Before ++$day is events occurring at the end of a day. (This doesn't correctly model exactly when the level actually changes, but I think it does use fields based on the correct level everywhere.)
  • Comment on Re: Re: Sainthood via Seniority Simulation

Replies are listed 'Best First'.
Re: Re: Re: Sainthood via Seniority Simulation
by ysth (Canon) on Nov 05, 2003 at 14:18 UTC
    People didn't seem to like my asking for further explanation :(. I still don't see the bug, though I see my loop is written in a rather confusing way :(. I'm trying to compare what I have with sauoq's version. The first difference I see is whether the day number is printed just before or just after incrementing, which is really a cosmetic issue. We also differ on if the "used all votes" bonus applies to monks; Voting/Experience System could be read either way. (update: monks(5) don't seem to get the bonus--updating my version now)

    my version:

    increment level if appropriate increment day add per-vote xp add login xp add all-votes-used xp repeat
    sauoq's version:
    increment day increment level if appropriate add login xp add per-vote xp add all-votes-used xp repeat

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://304643]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.