Game/GameManager.cs
/// <summary>
/// Adds pieces to the correct board list
/// </summary>
/// <param name="piece"></param>
Adds pieces to the correct board list
Adds pieces to the correct board list
private void AddPieceToBoard(Piece piece)
        {
            if (piece.Side == PieceColor.White)
            {
                if (piece.EPiece == EPiece.King)
                {
                    Board.WhiteKing = (King) piece;
                }
                else
                {
                    Board.WhitePieces.Add(piece);
                }
            }
            else
            {
                if (piece.EPiece == EPiece.King)
                {
                    Board.BlackKing = (King) piece;
                }
                else
                {
                    Board.BlackPieces.Add(piece);
                }
            }
        }
private void AddPieceToBoard ( Piece piece ) { if ( piece . Side == PieceColor . White ) { if ( piece . EPiece == EPiece . King ) { Board . WhiteKing = ( King ) piece ; } else { Board . WhitePieces . Add ( piece ) ; } } else { if ( piece . EPiece == EPiece . King ) { Board . BlackKing = ( King ) piece ; } else { Board . BlackPieces . Add ( piece ) ; } } }
Adds pieces to the correct board list
Adds pieces to the correct board list
piece
Piece
None