示例#1
0
 public LevelClass(int _winScore, int _turns, int _fieldSize, int ballTypes)
 {
     scoreForWin = _winScore;
     score       = 0;
     //turns = _turns;
     currentStep = _turns;
     fieldSize   = _fieldSize;
     field       = FieldGenerator.InitialFieldGeneration(fieldSize, ballTypes);
 }
示例#2
0
    public void MainCheck()
    {
        Field field = FieldGenerator.InitialFieldGeneration(15, 6);

        int a = 0;

        for (int i = 0; i < 15; i++)
        {
            for (int j = 0; j < 15; j++)
            {
                if (field.grid[i, j].type == -1)
                {
                    a += 1;
                }
            }
        }

        Assert.AreEqual(0, a);
    }