Check out Atomic Chess, our featured variant for November, 2024.


[ Help | Earliest Comments | Latest Comments ]
[ List All Subjects of Discussion | Create New Subject of Discussion ]
[ List Earliest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]

Single Comment

Can CVP site have a chess variants server eventually[Subject Thread] [Add Response]
🕸Fergus Duniho wrote on Thu, Feb 8 07:25 PM UTC in reply to H. G. Muller from 06:17 PM:

I have made Game Courier's delay in checking for your opponent's move more variable, depending upon the time controls. I have replaced 7500 with a variable called delay, and I have set it with this PHP code. Note that the time controls are in seconds, and the delay is in microseconds.

$totaltime = $gracetime + $opptime;
if ($totaltime > 24*3600)
    echo "var delay = 7500;\n";
elseif ($totaltime > 3600)
    echo "var delay = 4000;\n";
elseif ($totaltime > 1800)
    echo "var delay = 2000;\n";
elseif ($totaltime > 900)
    echo "var delay = 1000;\n";
elseif ($totaltime > 0)
    echo "var delay = 500;\n";
else
    echo "var delay = 7500;\n";