Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Re: Perl Game, suggestions.

by mr.nick (Chaplain)
on May 23, 2001 at 19:13 UTC ( [id://82586]=note: print w/replies, xml ) Need Help??


in reply to Re: Perl Game, suggestions.
in thread Perl Tanks

i personally don't think it should be turn-based ...

I agree. It should be time based. Something on the order of

while (TwoOrMoreAlive()) { for my $robot (@ArrayOfRobots) { eval { local $SIG{ALRM}=sub{ die }; alarm(1); $robot->Process(); alarm(0); }; } }
This would give each robot a fixed amount of time to do something. Somehow, we would want to parallelize the process (using a smaller time increment than 1 sec....). But by doing it time-based gives advantages to people who write very fast, efficient code: which should be a bonus.

I have gobs of ideas, just not enough time to write them all down ... more later.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://82586]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2024-04-20 04:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found