示例#1
0
 public Game(AvailableCategoriesStrategy categoryRule, Dice dice) => Init(categoryRule, dice);
示例#2
0
 private void Init(AvailableCategoriesStrategy categoryRule, Dice dice)
 {
     _categoryRule = IsNotNull(categoryRule) ? categoryRule : throw new ArgumentNullException();
     _dice         = IsNotNull(dice) ? dice : InitDice();
     _player       = new Player();
 }
示例#3
0
 public Game(AvailableCategoriesStrategy categoryRule) => Init(categoryRule, null);