teeme edasi
This commit is contained in:
@@ -1,17 +1,33 @@
|
|||||||
def checksouth(x, y):
|
def checksouth(x, y):
|
||||||
print('south')
|
print('south')
|
||||||
|
if x < (len(ruum)-2):
|
||||||
|
if ruum[x+1][y] in ('|JL'):
|
||||||
|
return True
|
||||||
|
return False
|
||||||
|
|
||||||
|
|
||||||
def checknorth(x, y):
|
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):
|
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):
|
def checkeast(x, y):
|
||||||
print('south')
|
print('south')
|
||||||
|
if y < (len(ruum[x]) - 2):
|
||||||
|
if ruum[x][y+1] in ('-J7'):
|
||||||
|
return True
|
||||||
|
return False
|
||||||
|
|
||||||
|
|
||||||
def otsing(x, y, tase):
|
def otsing(x, y, tase):
|
||||||
|
|||||||
Reference in New Issue
Block a user