teeme edasi

This commit is contained in:
Lauri Jesmin
2023-12-15 11:34:12 +02:00
parent 2597d45345
commit cd6617eb67

View File

@@ -1,17 +1,33 @@
def checksouth(x, y):
print('south')
if x < (len(ruum)-2):
if ruum[x+1][y] in ('|JL'):
return True
return False
def checknorth(x, y):
print('south')
print('north')
if x > 0:
if ruum[x-1][y] in ('|7F'):
return True
return False
def checkwest(x, y):
print('south')
print('west')
if y > 0:
if ruum[x][y-1] in ('-LF'):
return True
return False
def checkeast(x, y):
print('south')
if y < (len(ruum[x]) - 2):
if ruum[x][y+1] in ('-J7'):
return True
return False
def otsing(x, y, tase):