In Greyhound.cs:
Randomizer = new Random();
for(int i = this.StartingPosition; i < RacetrackLength; i++)
{
Point p = this.MyPictureBox.Location;
p.X += Randomizer.Next(5);
MyPictureBox.Location = p;
}
In Form1.cs:
private void raceButton_Click(object sender, EventArgs e)
{
dogs[0].Run();
dogs[1].Run();
dogs[2].Run();
dogs[3].Run();
}
When I click the "Race!" button, Dog #1 teleports to the end of the track, while Dog #2 teleports about 3/4 of the way, Dog #3 teleports about 1/2 of the way, and Dog #4 teleports about 1/4 of the way.
I have two problems, and I have a feeling they're related: 1) How do I get them to slowly trot along, like in the sample program you can download from this site?
2) How do I actually make it so #1 isn't always in the lead?











