GclkData - The Package thats holds the datas for GameClock


Chess-GameClock-GameClock documentation  | view source Contained in the Chess-GameClock-GameClock distribution.

Index


NAME

Top

GclkData - The Package thats holds the datas for GameClock most of them are dedicated to the set the cadence (clock rate) of the game.

VERSION

Top

Version 1.8

SYNOPSIS

Top

 [{qw/ct 15*60 mv 25 b 0 f 0 byo 1/},
  {qw/ct 15*60 mv 0 b 0 f 0 byo 1/}]

The Array here above has to be understood as having two sequences.

The first one: {qw/ct 15*60 mv 25 b 0 f 0 byo 1/} will set the counting time avalaible "ct" 15*60 seconds thats means 900 seconds or 15 minutes.

ct is evaluated so it can be written as a product for sake of lisibility.

mv is the move number at which checking time will be done.

b is the Bronstein time and f is the Fisher time. They are both a kind of bonus.

All the time are finally expressed in seconds.

For Byo-Yomi, there some trick because it exists two kind for these cadences:

Canadian byo-yomi.

Japonese byo-yomi.

Byo-Yomi mode is set when byo=0.

So finally, the rules for setting the clock rate are the following:

ct : maintime could be time*60 | time*3600 | time

if byo=1 means no Byo-Yomi

         b !=0 or f !=0 set the Bronstein or Fischer cadence.

         mv=0 sets the Sudden death or Guillotine.

         Loop on the cadence except Sudden death of course.

If byo=0 First cadence is for maintime defined with ct (note here mv=0).

         Next cadence could be of Japonese type: b!=0 and ct=k*b where k
                                                 is an integer.
         or Canadian type when b=0.

         Generally, for Canadian Byo-Yomi mv is an integer and for Japonese mv=1.

AUTHOR

Top

Charles Minc, <charles.minc@wanadoo.fr>

BUGS

Top

Please report any bugs or feature requests to bug-gclkdata at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=GameClock. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

Top

You can find documentation for this module with the perldoc command.

    perldoc GameClock

You can also look for information at: http://en.wikipedia.org/wiki/Go_intro#Timing

* AnnoCPAN: Annotated CPAN documentation

http://annocpan.org/dist/GameClock

* CPAN Ratings

http://cpanratings.perl.org/d/GameClock

* RT: CPAN's request tracker

http://rt.cpan.org/NoAuth/Bugs.html?Dist=GameClock

* Search CPAN

http://search.cpan.org/dist/GameClock

ACKNOWLEDGEMENTS

Top

COPYRIGHT & LICENSE

Top


Chess-GameClock-GameClock documentation  | view source Contained in the Chess-GameClock-GameClock distribution.