board.js
changeset 153 5a2d38d67319
parent 151 bb5994be7eda
child 154 c6d9b84d9391
equal deleted inserted replaced
152:07814b979a8a 153:5a2d38d67319
   537         }
   537         }
   538         if (f1 === 0) {
   538         if (f1 === 0) {
   539             to[0][j] = 0;
   539             to[0][j] = 0;
   540             to[1][j] = 0;
   540             to[1][j] = 0;
   541             if (f2 === f3) {
   541             if (f2 === f3) {
       
   542                 updated = true;
   542                 to[2][j] = 0;
   543                 to[2][j] = 0;
   543                 to[3][j] = f3 + 1;
   544                 to[3][j] = f3 + 1;
   544                 updated = true;
       
   545             } else {
   545             } else {
   546                 to[2][j] = f2;
   546                 to[2][j] = f2;
   547                 to[3][j] = f3;
   547                 to[3][j] = f3;
   548             }
   548             }
   549             continue;
   549             continue;
  1581         to.da = f3;
  1581         to.da = f3;
  1582     } else if (f1 === 0) {
  1582     } else if (f1 === 0) {
  1583         to.aa = 0;
  1583         to.aa = 0;
  1584         to.ba = 0;
  1584         to.ba = 0;
  1585         if (f2 === f3) {
  1585         if (f2 === f3) {
       
  1586             updated = true;
  1586             to.ca = 0;
  1587             to.ca = 0;
  1587             to.da = f3 + 1;
  1588             to.da = f3 + 1;
  1588             updated = true;
       
  1589         } else {
  1589         } else {
  1590             to.ca = f2;
  1590             to.ca = f2;
  1591             to.da = f3;
  1591             to.da = f3;
  1592         }
  1592         }
  1593     } else if (f2 === f3) {
  1593     } else if (f2 === f3) {