INFINITY = 1e+31

DIRECTIONS = ((-1,-1),(-1,0),(-1,1),
               (0,-1),        (0,1),
               (1,-1), (1,0), (1,1))

EMPTY = 0
BLACK = 1
WHITE = 2

def opposite_colour(col):
    if col == BLACK:
        return WHITE
    if col == WHITE:
        return BLACK

INFINITY = 1e+31

DIRECTIONS = ((-1,-1),(-1,0),(-1,1),
               (0,-1),        (0,1),
               (1,-1), (1,0), (1,1))

EMPTY = 0
BLACK = 1
WHITE = 2

def opposite_colour(col):
    if col == BLACK:
        return WHITE
    if col == WHITE:
        return BLACK

from pdb import set_trace as st

Make a shortcut for debugging with pdb
Make a shortcut for debugging with pdb

  INFINITY = 1e+31
  
  DIRECTIONS = ((-1,-1),(-1,0),(-1,1),
                 (0,-1),        (0,1),
                 (1,-1), (1,0), (1,1))
  
  EMPTY = 0
  BLACK = 1
  WHITE = 2
  
  def opposite_colour(col):
      if col == BLACK:
          return WHITE
      if col == WHITE:
          return BLACK
  
+ from pdb import set_trace as st
+ 
Make a shortcut for debugging with pdb
## Code Before:
INFINITY = 1e+31

DIRECTIONS = ((-1,-1),(-1,0),(-1,1),
               (0,-1),        (0,1),
               (1,-1), (1,0), (1,1))

EMPTY = 0
BLACK = 1
WHITE = 2

def opposite_colour(col):
    if col == BLACK:
        return WHITE
    if col == WHITE:
        return BLACK

## Instruction:
Make a shortcut for debugging with pdb
## Code After:
INFINITY = 1e+31

DIRECTIONS = ((-1,-1),(-1,0),(-1,1),
               (0,-1),        (0,1),
               (1,-1), (1,0), (1,1))

EMPTY = 0
BLACK = 1
WHITE = 2

def opposite_colour(col):
    if col == BLACK:
        return WHITE
    if col == WHITE:
        return BLACK

from pdb import set_trace as st
