示例#1
0
 public Board(int oreTypes)
 {
     OreColumns = new List <OreColumn>(InitialColumnCount);
     for (var i = 0; i < InitialColumnCount; i++)
     {
         OreColumns.Add(OreColumn.GenerateRandomColumn(oreTypes));
     }
 }
示例#2
0
 public void AddColumn(int oreTypeCount)
 {
     OreColumns.Insert(0, OreColumn.GenerateRandomColumn(oreTypeCount));
 }