Move position | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 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.

1st Mar 2019, 2:42 AM
Pierson - avatar
3 Respuestas
+ 3
//here you go input->pos->pos++
1st Mar 2019, 6:28 AM
Sudarshan Rai
Sudarshan Rai - avatar
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 - avatar