Esempio n. 1
0
 /*Game strategy when game ends when noone touch apple for long time*/
 public Game(List <SnakeObject> snakes, Random random, bool mutate)
 {
     GameRounds  = 0;
     this.random = random;
     if (mutate)
     {
         SnakeList = Mutator.MutateSnakesForMultiGame(snakes, random);
     }
     else
     {
         SnakeList = snakes;
     }
     Apples.Add(new Apple(SnakeList, random));
 }