SharifAIChallenge / AIC19-Client-Python

https://aichallenge.sharif.edu/
6 stars 3 forks source link

move function doesnt work ! #18

Closed houshangi closed 5 years ago

houshangi commented 5 years ago

i just use a simple method to move my hero

world.move_hero(hero_id=heroes[0].id , hero=heroes[0] , direction=Model.Direction.DOWN)

i even tried it with two argument constructor , but it doesnt move :+1:

world.move_hero(hero_id=heroes[0].id , direction=Model.Direction.DOWN)

in return i get : None

armagg commented 5 years ago

Have you checked the existence of walls down of your hero ? in our default map, we've wall down of your first hero

houshangi commented 5 years ago

yes i checked that , is return parameter 'None' OK ????

hamidreza004 commented 5 years ago

Yes it's ok :) world.move is just a function that send a message to server.