Beispiel #1
0
 public PlayDomino(IDominoGame myDominoGame,IStock stock,int numberOfPlayers)
 {
     _myDomino = myDominoGame;
     _stock = stock;
     _stock.Shuffle(15);
     _myDomino.InitializePlayers(numberOfPlayers);
     _myDomino.InitializeTurns();
     _currentPlayer= _myDomino.GetPlayerAtTurn(_myDomino.PlayerTurn);
 }
Beispiel #2
0
 public PlayDomino(int numberOfPlayers)
 {
     _myDomino=new DominoGame();
     _stock=new Stock();
     _stock.Shuffle(15);
     _myDomino.InitializePlayers(numberOfPlayers);
     _myDomino.InitializeTurns();
     _currentPlayer = _myDomino.GetPlayerAtTurn(_myDomino.PlayerTurn);
 }