Browse files

readme update

  • Loading branch information...
1 parent de51f50 commit 0a13890bb95ca0f870208fd8ed401f39d5feb36e @azer committed Apr 17, 2011
Showing with 9 additions and 0 deletions.
  1. +8 −0 README
  2. +1 −0 toledo-chess.js
View
8 README
@@ -2,3 +2,11 @@ Unobtrusive, indented fork of Toledo Javascript Chess (aka 1k Chess).
Working example is at http://azer.github.com/toledo-chess
Oscar Toledo's Homepage: http://nanochess.110mb.com
+
+04.17 Update
+============
+makeMove method added. example usage;
+
+ > toledoChess.makeMove('a2','a4',function(aiCounter){
+ console.log(aiCounter.from, aiCounter.to);
+ });
View
1 toledo-chess.js
@@ -44,6 +44,7 @@
}
function W() {
+ if(W.disabled) return;
i = "<table>";
for (u = 18; u < 98; document.body.innerHTML = i += ++u % x - 9 ? "<th width=60 height=60 onclick='toledoChess.pI(" + u + ")&8?toledoChess.W():toledoChess.X(0,0,toledoChess.y(),1)'style='font-size:50px'bgcolor=#" + (u - B ? u * .9 & 1 || 9 : "d") + "0f0e0>&#" + (I[u] & 15 ? 9808 + l[67 + (I[u] & 15)] : 160) + ";" : u++ && "<tr>") B = b
}

0 comments on commit 0a13890

Please sign in to comment.