I'm new to Mathematica and still teaching all by myself, hope you bear with me.
I have the code:
For[i = 1; t = 1, i <= 10, i++, t = t + RandomChoice[{-1, 0, 1}];
Print[t]]
When I evaluate it I and get different outputs at each evaluation, as expected. Here is a sample output:
You can imagine it as a simple random walk on an integer line with a particle starting at integer 1. It either moves to the right (+1), left (-1) or stays (0).
What I want to do is make a random walk with two different particles. Let's say particle A starts at 2 and particle B starts at -2. I want both particles to start their walk and stop when they meet. Meeting does not have to mean that they stop at a common point; being one step away, like particle A is at 0 and particle B is at -1, will do.
Can I still use the code I made and combine it of some way with other code to do that? Any help is appreciated. It's okay if there's no graphics.


