예제 #1
0
        public static void Main()
        {
            int distance = 150;

            String[]  names = { "Blackie", "Sparrow", "Raven",   "Quark", "Pixie",
                                "Tipsy",    "Ladybug", "Fat Tom", "Tex",   "Light" };
            HorseRace race = new HorseRace(distance, names);
        }
예제 #2
0
 public Horse(String Name, HorseRace race)
 {
     this.Name = Name;
     this.race = race;
     lock (rand){
         v = rand.NextDouble() * .9 + .1;
     }
 }