Example #1
0
 public void Play(IOthelloBoard board, IPlayer player1, IPlayer player2, string gridRef, IPieceType piece)
 {
     PlayerToPlayNext.Play(board, gridRef, piece);
     _passCount = 0;
     UpdateScores(player1, player2);
     NextPlayersTurn();
 }
Example #2
0
 public void Play(IOthelloBoard board, IPlayer player1, IPlayer player2, string gridRef, IPieceType piece)
 {
     PlayerToPlayNext.Play(board, gridRef, piece);
     _passCount = 0;
     UpdateScores(player1, player2);
     NextPlayersTurn();
 }
Example #3
0
 public Game(IOthelloBoard board, IPlayer player1, IPlayer player2)
 {
     _player1 = player1;
     _player2 = player2;
     _board = board;
     PlayerToPlayNext = _player1;
     _passCount = 0;
 }
Example #4
0
 public Game(IOthelloBoard board, IPlayer player1, IPlayer player2)
 {
     _player1         = player1;
     _player2         = player2;
     _board           = board;
     PlayerToPlayNext = _player1;
     _passCount       = 0;
 }