Exemple #1
0
 public void should_game_over()
 {
     Map map = new Map();
     for (int i = 0; i < 201; i++)
     {
         map.Turning();
     }
     Assert.AreEqual(false, map.game_is_not_over);
 }
Exemple #2
0
 /*
 Middle_tank mt; //танк
 List<Forest> Trees = new List<Forest>();
 List<Bullet> Bullets = new List<Bullet>();
 */
 public Game()
 {
     InitializeComponent();
     map = new Map();
     /*
     mt = new Middle_tank(32, 64);
     Trees.Add(new Forest(32 * 12, 32 * 12));
     Trees.Add(new Forest(32 * 8, 32 * 8));
     Trees.Add(new Forest(32 * 10, 32 * 10));
     Trees.Add(new Forest(32 * 6, 32 * 6));
     Trees.Add(new Forest(32 * 4, 32 * 4));
     Trees.Add(new Forest(32 * 2, 32 * 2));
      */
     //manual_control = true;
 }