Hi guys.I know there are a zillion topics about this lab, but since im new to C#(i only coded html, css and some c a looong time ago XD) i wanted to ask a very specific question ive got and i couldnt find the answer here.
I always try to start with each step as i feel i should , without following guidelines at heart.Then, when i understand the problem (if my program aint working) i see why and try to apply some other ideas .
In the case here, could i use this to make the dogs stop?
public bool Run()
{
while (location < raceTrackLenght)
{
location += Randomizer.Next(5); //Move forward either 1, 2 , 3 or 4 spaces randomly
Point p = myPictureBox.Location; //Update the position of my picturebox on the form
p.X = location;
myPictureBox.Location = p;
}
return false;
I Think that would make ALL the dogs run to the end of the track, but basically, we want that, and then tell who won.If it is in fact , possible to use a while loop on the Run(), then how could i tell which one reached the location>raceTrackLengh condition first?
Thanx in advance !!












