poprawione env

This commit is contained in:
Pikusia 2019-05-31 15:11:51 +02:00
parent 19b41cbdd5
commit d614f07222

21
env.py
View File

@ -93,8 +93,14 @@ def try_move(field, tractor):
return False
def look_at_plats(field, location):
<<<<<<< HEAD
wsp = []
wsp = [
(location[0] + 1, location[1]),
(location[0] - 1, location[1]),
(location[0], location[1] - 1),
(location[0], location[1] + 1)
]
return wsp
def send_stats(field, location):
@ -106,17 +112,6 @@ def send_stats(field, location):
return str_stats
=======
wsp = [
(location[0] + 1, location[1]),
(location[0] - 1, location[1]),
(location[0], location[1] - 1),
(location[0], location[1] + 1)
]
return wsp
>>>>>>> 7994cc70ae86d020bb27138d1becb1bf9b8befe1
if __name__ == "__main__":
field = initialize_field()