+ 1

Move position

Does Anyone know how to move my position 0 to where ever the dog is so i can keep entering the commands and it picks up where it left off instead of resetting. https://code.sololearn.com/WXqY7B9x5jDq/?ref=app

1st Mar 2019, 2:42 AM
Pierson
Pierson - avatar
3 odpowiedzi
+ 3
//here you go input->pos->pos++ https://code.sololearn.com/WSDP4xu9PF5L/?ref=app
1st Mar 2019, 6:28 AM
Sudarshan Rai
Sudarshan Rai - avatar
0
So I see what you did but it didn't really answer my question, my question was that the dog world jump back to where it originally when the same code was run twice and I have no clue how to set the position where the dog ended
1st Mar 2019, 1:24 PM
Pierson
Pierson - avatar