Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
search_opposite:
for(var j=0; j 0) {
//TODO: Test if flip is valid
//Unlink cells
removeFromDual(this, c)
c.children = []
c.next.prev = c.prev
c.prev.next = c.next
c.next = c.prev = null
removeFromDual(this, opposite)
opposite.children = []
opposite.next.prev = opposite.prev
opposite.prev.next = opposite.next
opposite.next = opposite.prev = null
for(var k=0; k