2048.html
changeset 86 203f9afeaf2f
parent 81 ebe3f0a3ab4c
child 88 97acd9f4288b
--- a/2048.html	Thu Sep 18 02:07:53 2014 +0300
+++ b/2048.html	Thu Sep 18 02:13:43 2014 +0300
@@ -607,7 +607,7 @@
       }
       var tsTo = new Date().getTime();
       ui.game.finishStep();
-      ui.score.speed(step*1000.0/(tsTo-tsFrom), step);
+      ui.score.speed(parseFloat((step*1000.0/(tsTo-tsFrom)).toPrecision(3)), step);
       ui.game.setMessage("Game over!");
       ui.ai.current && ui.ai.current.cleanup();
     }