author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Thu, 18 Sep 2014 02:13:43 +0300 | |
changeset 86 | 203f9afeaf2f |
parent 85 | d7da55c8eedf |
child 87 | 3fa365b14c66 |
--- 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(); }