Exemplo n.º 1
0
Arquivo: Gene.cs Projeto: 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);
        }
Exemplo n.º 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));
        }
Exemplo n.º 3
0
Arquivo: Gene.cs Projeto: tgy/CSharp
 public Gene(Point p, Couleur c, int side)
 {
     this.p = p;
     this.c = c;
     this.side = side;
 }
Exemplo n.º 4
0
 public Gene(Point p, Couleur c, int side)
 {
     this.p    = p;
     this.c    = c;
     this.side = side;
 }