Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Skunk Game - first cut

by particle (Vicar)
on Jun 22, 2003 at 14:03 UTC ( [id://267953]=note: print w/replies, xml ) Need Help??


in reply to Skunk Game - first cut

i haven't had much time to look this code over, but i noticed that you're forcing 5.008. i know that constant has extended syntax in that release, so you can do something like:

use constant { ANTE => 5, DOUBLE_SKUNK_PENALTY => 5, POINTS_TO_WIN => 100, # as long as I'm making it flexible... COWS_CAME_HOME => 10000, # protect against all players getting into + a state where they always roll until skunked. };

which i think is somewhat cleaner than the old syntax.

~Particle *accelerates*

Replies are listed 'Best First'.
Re: Re: Skunk Game - first cut
by John M. Dlugosz (Monsignor) on Jun 22, 2003 at 21:37 UTC
    Many thanks. I wished I could do that, and tried to do that in the past, but didn't realize that it was enhanced now.

    —John

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-04-25 11:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found