Lines Matching refs:floor

399       if (numberOfGames > 1) { Init(Math.floor(Math.random()*numberOfGames)); }
569 boardShortcut("D3", "load random game", function(t,e){ if (numberOfGames > 1) { Init(Math.floor(Math.random()*numberOfGames)); } }, true);
812 thisFEN += " " + (Math.floor(CurrentPly/2)+1);
831 if (thisPly%2 === 0) { addStr = (Math.floor(thisPly/2)+1) + ". "; }
832 else if (thisPly == CurrentPly) { addStr = (Math.floor(thisPly/2)+1) + "... "; }
1322 Init(Math.floor(Math.random()*numberOfGames));
1445 text = '<SPAN CLASS="move notranslate">' + (Math.floor((showThisMove+1)/2) + 1) + (((showThisMove+1) % 2) ? "..." : ".") + '</SPAN>';
1820 randomizer = "?noCache=" + (0x1000000000 + Math.floor((Math.random() * 0xF000000000))).toString(16).toUpperCase();
1926 newPly = [3, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1][Math.floor(20 * Math.random())] || 0;
2003 currentGame = Math.floor(Math.random()*numberOfGames);
2011 initialGame = initialGame < 0 ? -Math.floor(-initialGame) : Math.floor(initialGame);
2014 else if (initialGame === 0) { currentGame = Math.floor(Math.random()*numberOfGames); }
2035 GoToMove((StartPlyVar[iv] + (iv ? 1 : 0)) + Math.floor(Math.random()*(StartPlyVar[iv] + PlyNumberVar[iv])), iv);
2604 text = (Math.floor(thisPly / 2) + 1) + ((thisPly % 2) === 0 ? '. ' : '... ');
2940 moveCount = Math.floor((StartPly+PlyNumber)/2)+1;
3370 if (gameSelectorNum) { gameSelectorNumLenght = Math.floor(Math.log(numberOfGames)/Math.log(10)) + 1; }
3605 var moveCount = Math.floor(thisPly/2)+1;
3716 var newDelaySec = prompt("Enter custom autoplay delay, in seconds, between " + (minAutoplayDelay/1000) + " and " + (maxAutoplayDelay/1000) + ":", Math.floor(Delay / 100) / 10);