How will I update outside a void function?

I'm making a "snake and ladder" program and I'm having a hard time understanding the void function. For example. I will make a void function for my first player. And another void function for the second player. How can I update their positions outside a void?
Topic archived. No new replies allowed.