def _action_to_coord(board, a):
 if (a == _pass_action(board.size)):
  return pachi_py.PASS_COORD
 if (a == _resign_action(board.size)):
  return pachi_py.RESIGN_COORD
 return board.ij_to_coord((a // board.size), (a % board.size))

def _action_to_coord ( board , a ) : if ( a == _pass_action ( board . size ) ) : return pachi_py . PASS_COORD if ( a == _resign_action ( board . size ) ) : return pachi_py . RESIGN_COORD return board . ij_to_coord ( ( a // board . size ) , ( a % board . size ) )
converts actions to pachi coordinates .