Skip to content
Snippets Groups Projects
Commit ea9b0e19 authored by s2032074's avatar s2032074
Browse files

extra file deleted

parent d8dbab69
No related branches found
No related tags found
No related merge requests found
#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()
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment