--- a/2048.html Mon Sep 22 22:35:41 2014 +0300
+++ b/2048.html Mon Sep 22 22:36:03 2014 +0300
@@ -793,6 +793,7 @@
ui.report.statNo = 1;
ui.report.stat = function() {
+ /* console.profile(); */
var stats = [];
var cnt = parseInt(document.getElementById('stat-count-limit').value);
if (isNaN(cnt) || !isFinite(cnt) || cnt < 1)
@@ -918,6 +919,7 @@
var tableDom = ui.dom.table(tbl, tblCols, { tblClass: 'report-by-maxval', tblTitle: ui.ai.cfgTitle(ui.ai.currentName) });
reportDom.appendChild(tableDom);
reportsDom.insertBefore(reportDom, reportsDom.firstChild);
+ /* console.profileEnd(); */
}
var statisticBtn = document.getElementById('statistic');
statisticBtn.addEventListener("click", ui.report.stat, false);
@@ -935,6 +937,7 @@
// Initialise game.
ui.brdEngine = BoardArr2d; // TODO make user selectable
+ // ui.brdEngine = BoardObj; // TODO make user selectable
if (localStorage.untilScore) {
var scoreLimit = parseInt(localStorage.untilScore);