Exemple #1
0
        public Genom Mutate()
        {
            Genom genom = new Genom(code, rnd);
            int   x     = rnd.Next(Width);
            int   y     = rnd.Next(Height);

            genom.code[x, y] = Rnd();
            return(genom);
        }
Exemple #2
0
 public Human(Point position, Genom genom, World world) : base(world, position)
 {
     stuff      = new HandStuff[Enum.GetValues(typeof(Hand)).Length];
     this.genom = genom;
     hp         = MaxHp;
 }