ntt123 commited on
Commit
8227ece
1 Parent(s): f4ae2a9

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +1 -0
index.html CHANGED
@@ -47,6 +47,7 @@
47
  for (let j = 0; j < this.num_cols; j++) {
48
  // check winner at cell i, j
49
  var p = this.get(i, j);
 
50
  for (let dxy of [[1, 0], [0, 1], [1, 1], [-1, 1]]) {
51
  var count = 0;
52
  for (let k = 1; k <= 4; k++) {
 
47
  for (let j = 0; j < this.num_cols; j++) {
48
  // check winner at cell i, j
49
  var p = this.get(i, j);
50
+ if (p == 0) continue;
51
  for (let dxy of [[1, 0], [0, 1], [1, 1], [-1, 1]]) {
52
  var count = 0;
53
  for (let k = 1; k <= 4; k++) {