public OthelloGame(IBoardWriter board) { m_board = board; m_playerBlack = new Player() { Type = PlayerType.Player, Color = FieldValue.Black }; m_playerWhite = new Player() { Type = PlayerType.Player, Color = FieldValue.White }; ActivePlayer = m_playerBlack; }
public Game(IBoard board, IBoardWriter boardWriter) { _Board = board; _BoardWriter = boardWriter; }
public PlacePiece(IBoardWriter boardWriter, IBoardReader boardReader) { _boardWriter = boardWriter; _boardReader = boardReader; }
/// <summary> /// Display the player board using the givin displayer adapter /// </summary> public void PrintStatus(IBoardWriter displayer) { Player.PrintDetails(); displayer.WriteBoard(_board); }
public NewGame(IBoardWriter boardWriter) { _boardWriter = boardWriter; }
public Game(IBoardWriter displayer) { _displayer = displayer; }