Delete 'dictFunctions.py'
This commit is contained in:
parent
571b0f74be
commit
22b971923d
|
@ -1,50 +0,0 @@
|
||||||
monty = ["left", "chess", "back", "load"]
|
|
||||||
|
|
||||||
|
|
||||||
def getWordsSendDict(myList = []):
|
|
||||||
|
|
||||||
output = {}
|
|
||||||
output['Movement'] = checkMovement(myList)
|
|
||||||
output['Direction'] = checkDirection(myList)
|
|
||||||
output['Action'] = checkAction(myList)
|
|
||||||
print(output)
|
|
||||||
return output
|
|
||||||
|
|
||||||
def checkMovement(myList = [], *args):
|
|
||||||
file = open("movement.txt", 'r')
|
|
||||||
content = file.readlines()
|
|
||||||
content = [x.strip('\n') for x in content]
|
|
||||||
for i in content:
|
|
||||||
for j in myList:
|
|
||||||
if j == i:
|
|
||||||
file.close()
|
|
||||||
return i
|
|
||||||
file.close()
|
|
||||||
|
|
||||||
def checkDirection(myList = [], *args):
|
|
||||||
file = open("directions.txt", 'r')
|
|
||||||
content = file.readlines()
|
|
||||||
content = [x.strip('\n') for x in content]
|
|
||||||
for i in content:
|
|
||||||
for j in myList:
|
|
||||||
if j == i:
|
|
||||||
file.close()
|
|
||||||
return i
|
|
||||||
file.close()
|
|
||||||
|
|
||||||
def checkAction(myList = [], *args):
|
|
||||||
file = open("actions.txt", 'r')
|
|
||||||
content = file.readlines()
|
|
||||||
content = [x.strip('\n') for x in content]
|
|
||||||
for i in content:
|
|
||||||
for j in myList:
|
|
||||||
if j == i:
|
|
||||||
file.close()
|
|
||||||
return i
|
|
||||||
file.close()
|
|
||||||
|
|
||||||
|
|
||||||
def saveDict()
|
|
||||||
|
|
||||||
|
|
||||||
getWordsSendDict(monty)
|
|
Loading…
Reference in New Issue