2048.html
changeset 131 02d7eb74bfe5
parent 130 28694f058ea4
child 132 8715659bcce6
equal deleted inserted replaced
130:28694f058ea4 131:02d7eb74bfe5
   598       board.move[move].call(null, ui.board.position);
   598       board.move[move].call(null, ui.board.position);
   599       ui.game.finishStep();
   599       ui.game.finishStep();
   600     }
   600     }
   601     document.getElementById("step").addEventListener("click", ui.action.step, false);
   601     document.getElementById("step").addEventListener("click", ui.action.step, false);
   602 
   602 
   603     ui.action.visualFinishAux = function(brd) {
   603     ui.action.visualFinishAux = function() {
   604       if ( ! ui.game.beginStep())
   604       if ( ! ui.game.beginStep())
   605         return;
   605         return;
   606       var brd = board.create();
   606       var brd = board.create();
   607       board.copy(ui.board.position, brd);
   607       board.copy(ui.board.position, brd);
   608       var move = ui.ai.current.analyse(brd);
   608       var move = ui.ai.current.analyse(brd);