This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Input | |
alternativesList = [[]] | |
alternativesList[0] = list(map(int, input("Initial state: ").split())) | |
goal = list(map(int, input("Goal: ").split())) | |
# A flag to check if we could make a new alternative | |
# so that we can decide whether to append it to the alternativesList | |
newAlternative = False | |
# Try to reach the goal | |
def threeJugs(): |