#this file deals with the current sequence, like checking if it's correct, checking which sequence in the list we're at, etc.

#importing necessary variables from other files
if __name__ != "__main__":
    from game import sequencelist
#if this file is run in script mode, it will assign arbitrary testing values in order to check whether the code is running correctly
elif __name__ == "__main__":
    i = 2
    sequencelist = [[0, 2, 5], [2, 3, 1], [0, 2]]
    currentinput = [0, 2]
    currentinputlength = len(currentinput)
    currentsequence = sequencelist[i]
    currentsequencelength= len(currentsequence)
'''this class deals with all the functions for the current sequence'''
class Sequence:
    #function that checks if the input matches the sequence
    def checkcorrect():
        if currentsequencelength != currentinputlength:
            correct = False
        else:
            for c in range (len(currentsequence)):
                if currentsequence[c] != currentinput[c]:
                    correct = False
                else:
                    correct = True
        print(correct)
    if __name__ == "__main__":
        checkcorrect()