예제 #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));
        }
예제 #2
0
 static void Main(string[] args)
 {
     asker = new InfoAsker <string>();
     asker.AskingInfoEvent += asker_AskingInfoEvent;
     asker.AskAndWaitForInfo();
 }