From 56518f8fa20ed194ba39a3e69e80af8cfca50b6b Mon Sep 17 00:00:00 2001 From: deuce <> Date: Wed, 16 Jan 2013 01:58:07 +0000 Subject: [PATCH] Fix some derp in the last commit --- xtrn/chess/board.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xtrn/chess/board.js b/xtrn/chess/board.js index 7394a01424..22b8f74b00 100644 --- a/xtrn/chess/board.js +++ b/xtrn/chess/board.js @@ -58,10 +58,10 @@ function Board(moves) } } } -Board.prototype.handleMove +Board.prototype.handleMove=function(move) { // TODO: Promotions - m=moves[move].match(/^([a-h][1-8])([a-h][1-8])(.*)$/); + m=move.match(/^([a-h][1-8])([a-h][1-8])(.*)$/); if(m==null) throw("Corrupt game (invalid move)!"); if(m!=null) { -- GitLab