--- a/2048.html Sun Aug 07 23:14:11 2016 +0300
+++ b/2048.html Sun Aug 07 23:17:47 2016 +0300
@@ -149,7 +149,7 @@
<div id="control-area" class="area">
<div class="control">
- <button id="start">Start</button>
+ <button id="reset">Reset</button>
<div class="option"><input type="checkbox" id="2048" checked> 2048</div>
<div class="option">
<select id="board-engine">
@@ -569,7 +569,7 @@
ui.action = {};
- ui.action.start = function() {
+ ui.action.reset = function() {
ui.score.clear();
ui.suggestion.clear();
ui.game.clearMessage();
@@ -578,7 +578,7 @@
board.putRandom(ui.board.position);
ui.board.update(ui.board.position);
}
- document.getElementById("start").addEventListener("click", ui.action.start, false);
+ document.getElementById("reset").addEventListener("click", ui.action.reset, false);
for (var i = 0; i < ui.game.dirs.length; i++) {
var dir = ui.game.dirs[i];