Esempio n. 1
0
        public override Dictionary <CoOrdinate, Piece> SetUp(Color color)
        {
            int xCoOrdinateFirst  = 2;
            int xCoOrdinateSecond = 5;
            int yCoOrdinate       = GetYCoOrdinate(color);
            Dictionary <CoOrdinate, Piece> pieces = new Dictionary <CoOrdinate, Piece>();
            CoOrdinate coOrdinate = new CoOrdinate(xCoOrdinateFirst, yCoOrdinate);
            var        piece      = new Bishop(color, coOrdinate);

            pieces.Add(piece.FromCoOrdinate, piece);
            coOrdinate = new CoOrdinate(xCoOrdinateSecond, yCoOrdinate);
            piece      = new Bishop(color, coOrdinate);
            pieces.Add(piece.FromCoOrdinate, piece);
            return(pieces);
        }