Example #1
0
File: Gene.cs Project: tgy/CSharp
        public static Gene RandomGene()
        {
            Point p = new Point(ran.Next(101), ran.Next(101));
            Couleur c = new Couleur(ran.Next(256), ran.Next(256), ran.Next(256));
            int side = ran.Next(101);

            return new Gene(p, c, side);
        }
Example #2
0
        public static Gene RandomGene()
        {
            Point   p    = new Point(ran.Next(101), ran.Next(101));
            Couleur c    = new Couleur(ran.Next(256), ran.Next(256), ran.Next(256));
            int     side = ran.Next(101);

            return(new Gene(p, c, side));
        }
Example #3
0
File: Gene.cs Project: tgy/CSharp
 public Gene(Point p, Couleur c, int side)
 {
     this.p = p;
     this.c = c;
     this.side = side;
 }
Example #4
0
 public Gene(Point p, Couleur c, int side)
 {
     this.p    = p;
     this.c    = c;
     this.side = side;
 }