Skip to content
Snippets Groups Projects
Commit 56518f8f authored by deuce's avatar deuce
Browse files

Fix some derp in the last commit

parent 9405fd73
No related branches found
No related tags found
No related merge requests found
...@@ -58,10 +58,10 @@ function Board(moves) ...@@ -58,10 +58,10 @@ function Board(moves)
} }
} }
} }
Board.prototype.handleMove Board.prototype.handleMove=function(move)
{ {
// TODO: Promotions // 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) if(m==null)
throw("Corrupt game (invalid move)!"); throw("Corrupt game (invalid move)!");
if(m!=null) { if(m!=null) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment