Ejemplo n.º 1
0
        private Move GetPawnPromotion(Square startingSquare, Square endingSquare)
        {
            var promotedTo = _pieceFactory.CreatePiece(_promoteToAsker.AskAndWaitForInfo(),
                                                       startingSquare.Piece.Color);

            return(new PawnPromotion(startingSquare,
                                     endingSquare,
                                     promotedTo,
                                     null));
        }
Ejemplo n.º 2
0
 static void Main(string[] args)
 {
     asker = new InfoAsker <string>();
     asker.AskingInfoEvent += asker_AskingInfoEvent;
     asker.AskAndWaitForInfo();
 }