Commits

Shlomi Fish committed 8b0c7a2

Add _add_next_state.

  • Participants
  • Parent commits a4563d2

Comments (0)

Files changed (1)

File abc-path/js/abc-path.js

                 }
             );
         },
+        _add_next_state: function(stack, orig_l, cell_int) {
+            var l = this._replaceSubstring(orig_l, cell_int, cell_int+1, String.fromCharCode(1+stack.length));
+
+            stack.push([l, this._shuffle(this._get_next_cells(l, cell_int))]);
+
+            return;
+        },
     }
 });