public void DoTurn(Coordinate i_Turn, Board.eCellContent i_DiskOfTurn)
        {
            Board.SetCellContent(i_Turn.Row, i_Turn.Column, i_DiskOfTurn);
            var cellsToFlip = Board.GetCellsToFlip(i_DiskOfTurn, i_Turn);

            foreach (var cell in cellsToFlip)
            {
                Board.SetCellContent(cell.Row, cell.Column, i_DiskOfTurn);
            }
        }
 public PcRandomPlayer(string i_Name, Board.eCellContent i_DiskType)
 {
     Name     = i_Name;
     DiskType = i_DiskType;
     m_Random = new Random(DateTime.Now.Millisecond);
 }
예제 #3
0
 public HumanPlayer(string i_Name, Board.eCellContent i_DiskType)
 {
     Name     = i_Name;
     DiskType = i_DiskType;
 }