Ejemplo n.º 1
0
 public Player(ePlayerType i_PlayerType, Square.ePlayerColor i_PlayerColor, string i_Name, int i_Score)
 {
     m_PlayerType          = i_PlayerType;
     m_PlayerColor         = i_PlayerColor;
     m_Name                = i_Name;
     m_Score               = i_Score;
     m_PlayerSquares       = new List <Square>();
     m_PlayerRegularMoves  = new List <Move>();
     m_PlayerSkippingMoves = new List <Move>();
 }
Ejemplo n.º 2
0
        private List <Square> createPlayersSquaresList(Square.ePlayerColor i_PlayerColor)
        {
            List <Square> playersSquares = new List <Square>();

            for (int i = 0; i < (int)m_GameBoard.Size; i++)
            {
                for (int j = 0; j < (int)m_GameBoard.Size; j++)
                {
                    if (m_GameBoard[i, j].SquareValue == i_PlayerColor)
                    {
                        playersSquares.Add(m_GameBoard[i, j]);
                    }
                }
            }

            return(playersSquares);
        }
Ejemplo n.º 3
0
 public Player(ePlayerType i_PlayerType, Square.ePlayerColor i_PlayerColor, string i_Name) : this(i_PlayerType, i_PlayerColor, i_Name, 0)
 {
 }