예제 #1
0
파일: Game.cs 프로젝트: AntonStrand/yahtzee
 public Game(AvailableCategoriesStrategy categoryRule, Dice dice) => Init(categoryRule, dice);
예제 #2
0
파일: Game.cs 프로젝트: AntonStrand/yahtzee
 private void Init(AvailableCategoriesStrategy categoryRule, Dice dice)
 {
     _categoryRule = IsNotNull(categoryRule) ? categoryRule : throw new ArgumentNullException();
     _dice         = IsNotNull(dice) ? dice : InitDice();
     _player       = new Player();
 }
예제 #3
0
파일: Game.cs 프로젝트: AntonStrand/yahtzee
 public Game(AvailableCategoriesStrategy categoryRule) => Init(categoryRule, null);