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;
        }
예제 #2
0
        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;
        }
예제 #3
0
 public Game(IBoard board, IBoardWriter boardWriter)
 {
     _Board = board;
     _BoardWriter = boardWriter;
 }
예제 #4
0
 public PlacePiece(IBoardWriter boardWriter, IBoardReader boardReader)
 {
     _boardWriter = boardWriter;
     _boardReader = boardReader;
 }
예제 #5
0
파일: PlayerManager.cs 프로젝트: kyapp69/BT
 /// <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;
 }
예제 #7
0
 public Game(IBoardWriter displayer)
 {
     _displayer = displayer;
 }