'''
Created on Jan 29, 2017

@author: saumitra
'''


def swap(boardConfig,loc1,loc2):
    temp=boardConfig[loc1]
    boardConfig[loc1]=boardConfig[loc2]
    boardConfig[loc2]=temp
    return boardConfig

'''
boardConfig <tuple>
fringeBoard <set>
exploredBoard <set> 
'''
def compareState(boardConfig,fringeBoard,exploredBoard):
    if boardConfig in fringeBoard or boardConfig in exploredBoard:
        return True
    else:
        return False

239a38e9c35dad9ebbed8d0005fea14a15dc4069
<mask token>

<mask token>


def compareState(boardConfig, fringeBoard, exploredBoard):
    if boardConfig in fringeBoard or boardConfig in exploredBoard:
        return True
    else:
        return False

<mask token>


def swap(boardConfig, loc1, loc2):
    temp = boardConfig[loc1]
    boardConfig[loc1] = boardConfig[loc2]
    boardConfig[loc2] = temp
    return boardConfig


<mask token>


def compareState(boardConfig, fringeBoard, exploredBoard):
    if boardConfig in fringeBoard or boardConfig in exploredBoard:
        return True
    else:
        return False

'''
Created on Jan 29, 2017

@author: saumitra
'''


def swap(boardConfig,loc1,loc2):
    temp=boardConfig[loc1]
    boardConfig[loc1]=boardConfig[loc2]
    boardConfig[loc2]=temp
    return boardConfig

'''
boardConfig <tuple>
fringeBoard <set>
exploredBoard <set> 
'''
def compareState(boardConfig,fringeBoard,exploredBoard):
    if boardConfig in fringeBoard or boardConfig in exploredBoard:
        return True
    else:
        return False
