View on
MetaCPAN is shutting down
For details read Perl NOC. After June 25th this page will redirect to
Charles MINC > Chess-GameClock-GameClock > GclkData



Annotate this POD

View/Report Bugs
Module Version: 1.8   Source  


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 1.8


 [{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.


Charles Minc, <>


Please report any bugs or feature requests to bug-gclkdata at, or through the web interface at I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.


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

    perldoc GameClock

You can also look for information at:



Copyright 2006 Charles Minc, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: