예제 #1
0
 public static Results Roll(this IEnumerable<IRollable> toRoll, int iterations)
 {
     var roller = new Roller();
     foreach (var rollable in toRoll)
     {
         roller.AddRollable(rollable);
     }
     return roller.Roll(iterations);
 }
예제 #2
0
 public static Results Roll(this IRollable rollable, int iterations)
 {
     var roller = new Roller();
     roller.AddRollable(rollable);
     return roller.Roll(iterations);
 }