Home
last modified time | relevance | path

Searched refs:numGames (Results 1 – 2 of 2) sorted by relevance

/plugin/pgn4web/pgn4web/
H A Dgotd.php32 $numGames = preg_match_all("/(\s*\[\s*(\w+)\s*\"([^\"]*)\"\s*\]\s*)+[^\[]*/", $pgnText, $games ); variable
38 if ($gameNum == "random") { $gameNum = rand(1, $numGames); }
43 $gameNum = floor(($gameNum + ($timeNow / (60 * 60 * 24))) % $numGames) + 1;
46 else if ($gameNum > $numGames) { $gameNum = $numGames; }
H A Dpuzzler.php66 $numGames = preg_match_all("/(\s*\[\s*(\w+)\s*\"([^\"]*)\"\s*\]\s*)+[^\[]*/", $pgnText, $games ); variable
72 if ($gameNum == "random") { $gameNum = rand(1, $numGames); }
77 $gameNum = floor(($gameNum + ($timeNow / (60 * 60 * 24))) % $numGames) + 1;
80 else if ($gameNum > $numGames) { $gameNum = $numGames; }
81 $debugInfo .= "#" . ($gameNum ^ $numGames) . "." . $numGames . "\n";