[Game "Chinese Chess"] [FEN "rnbakabnr/9/1c5c1/p1p1p1p1p/9/9/P1P1P1P1P/1C5C1/9/RNBAKABNR w - - 0 1"] [Format "ICCS"] 1. H2-E2 H9-G7 2. H0-G2 I9-H9 3. I0-H0 B9-C7 4. C3-C4 G6-G5 5. H0-H6 H7-I7 6. H6-G6 D9-E8 7. B0-C2 I7-I8 8. B2-A2 A9-B9 9. A0-B0
var t0 = document.getElementById('t0'); var s = t0.value; s1 = s.split('[Format "ICCS"]'); var s2 = s1[1].split('\n'); var i = 0; var r = ""; for(i=1;i