# HG changeset patch # User Oleksandr Gavenko # Date 1411423768 -10800 # Node ID 5701802ff23252968583ec64a940ace083813fa2 # Parent 61f7f1f03a8d8cb69e70e93a027d20b02550ae35 Fix typo. diff -r 61f7f1f03a8d -r 5701802ff232 board.js --- a/board.js Tue Sep 23 01:05:11 2014 +0300 +++ b/board.js Tue Sep 23 01:09:28 2014 +0300 @@ -1053,9 +1053,7 @@ to.ab = 0; to.ac = 0; to.ad = f3; - continue; - } - if (f1 === 0) { + } else if (f1 === 0) { to.aa = 0; to.ab = 0; if (f2 === f3) { @@ -1066,9 +1064,7 @@ to.ac = f2; to.ad = f3; } - continue; - } - if (f2 === f3) { + } else if (f2 === f3) { updated = true; to.aa = 0; to.ad = f3 + 1; @@ -1152,9 +1148,7 @@ to.bb = 0; to.bc = 0; to.bd = f3; - continue; - } - if (f1 === 0) { + } else if (f1 === 0) { to.ba = 0; to.bb = 0; if (f2 === f3) { @@ -1165,9 +1159,7 @@ to.bc = f2; to.bd = f3; } - continue; - } - if (f2 === f3) { + } else if (f2 === f3) { updated = true; to.ba = 0; to.bd = f3 + 1; @@ -1251,9 +1243,7 @@ to.cb = 0; to.cc = 0; to.cd = f3; - continue; - } - if (f1 === 0) { + } else if (f1 === 0) { to.ca = 0; to.cb = 0; if (f2 === f3) { @@ -1264,9 +1254,7 @@ to.cc = f2; to.cd = f3; } - continue; - } - if (f2 === f3) { + } else if (f2 === f3) { updated = true; to.ca = 0; to.cd = f3 + 1; @@ -1350,9 +1338,7 @@ to.db = 0; to.dc = 0; to.dd = f3; - continue; - } - if (f1 === 0) { + } else if (f1 === 0) { to.da = 0; to.db = 0; if (f2 === f3) { @@ -1363,9 +1349,7 @@ to.dc = f2; to.dd = f3; } - continue; - } - if (f2 === f3) { + } else if (f2 === f3) { updated = true; to.da = 0; to.dd = f3 + 1; @@ -1455,9 +1439,7 @@ to.ba = 0; to.ca = 0; to.da = f3; - continue; - } - if (f1 === 0) { + } else if (f1 === 0) { to.aa = 0; to.ba = 0; if (f2 === f3) { @@ -1468,9 +1450,7 @@ to.ca = f2; to.da = f3; } - continue; - } - if (f2 === f3) { + } else if (f2 === f3) { updated = true; to.aa = 0; to.da = f3 + 1; @@ -1554,9 +1534,7 @@ to.bb = 0; to.cb = 0; to.db = f3; - continue; - } - if (f1 === 0) { + } else if (f1 === 0) { to.ab = 0; to.bb = 0; if (f2 === f3) { @@ -1567,9 +1545,7 @@ to.cb = f2; to.db = f3; } - continue; - } - if (f2 === f3) { + } else if (f2 === f3) { updated = true; to.ab = 0; to.db = f3 + 1; @@ -1653,9 +1629,7 @@ to.bc = 0; to.cc = 0; to.dc = f3; - continue; - } - if (f1 === 0) { + } else if (f1 === 0) { to.ac = 0; to.bc = 0; if (f2 === f3) { @@ -1666,9 +1640,7 @@ to.cc = f2; to.dc = f3; } - continue; - } - if (f2 === f3) { + } else if (f2 === f3) { updated = true; to.ac = 0; to.dc = f3 + 1; @@ -1752,9 +1724,7 @@ to.bd = 0; to.cd = 0; to.dd = f3; - continue; - } - if (f1 === 0) { + } else if (f1 === 0) { to.ad = 0; to.bd = 0; if (f2 === f3) { @@ -1765,9 +1735,7 @@ to.cd = f2; to.dd = f3; } - continue; - } - if (f2 === f3) { + } else if (f2 === f3) { updated = true; to.ad = 0; to.dd = f3 + 1; @@ -1857,9 +1825,7 @@ to.ac = 0; to.ab = 0; to.aa = f0; - continue; - } - if (f2 === 0) { + } else if (f2 === 0) { to.ad = 0; to.ac = 0; if (f1 === f0) { // a a 0 0 @@ -1870,9 +1836,7 @@ to.ab = f1; to.aa = f0; } - continue; - } - if (f1 === f0) { + } else if (f1 === f0) { updated = true; to.ad = 0; to.aa = f0 + 1; @@ -1955,9 +1919,7 @@ to.bc = 0; to.bb = 0; to.ba = f0; - continue; - } - if (f2 === 0) { + } else if (f2 === 0) { to.bd = 0; to.bc = 0; if (f1 === f0) { // a a 0 0 @@ -1968,9 +1930,7 @@ to.bb = f1; to.ba = f0; } - continue; - } - if (f1 === f0) { + } else if (f1 === f0) { updated = true; to.bd = 0; to.ba = f0 + 1; @@ -2053,9 +2013,7 @@ to.cc = 0; to.cb = 0; to.ca = f0; - continue; - } - if (f2 === 0) { + } else if (f2 === 0) { to.cd = 0; to.cc = 0; if (f1 === f0) { // a a 0 0 @@ -2066,9 +2024,7 @@ to.cb = f1; to.ca = f0; } - continue; - } - if (f1 === f0) { + } else if (f1 === f0) { updated = true; to.cd = 0; to.ca = f0 + 1; @@ -2151,9 +2107,7 @@ to.dc = 0; to.db = 0; to.da = f0; - continue; - } - if (f2 === 0) { + } else if (f2 === 0) { to.dd = 0; to.dc = 0; if (f1 === f0) { // a a 0 0 @@ -2164,9 +2118,7 @@ to.db = f1; to.da = f0; } - continue; - } - if (f1 === f0) { + } else if (f1 === f0) { updated = true; to.dd = 0; to.da = f0 + 1;