jhlywa/chess.js — Issue #12: Problem with chess.load and chess.move
Author: chelejuan
Created: 2012-03-01 12:25:17+00:00
State: open

Hello, the first great work.

Now my problem / question is that I think there is a problem because it always fails to be entirely correct movement.

1. e4 e5 2. Qf3 Nh6 3. Bc4 Bc5 4. Qxf7 Nxf7 5. d3 Qg5 6. Nf3 Bxf2 7. Kxf2 b6 8. Nxg5

If I write :

chess.load_pgn("1. e4 e5 2. Qf3 Nh6 3. Bc4 Bc5 4. Qf7")

Return false

And i wite

var piezas_blancas = valor.split("|");
for(i = 0; i < piezas_blancas.length; i++){
v = piezas_blancas[i];
if (v)
chess.move(v);
}