private Move GetPawnPromotion(Square startingSquare, Square endingSquare) { var promotedTo = _pieceFactory.CreatePiece(_promoteToAsker.AskAndWaitForInfo(), startingSquare.Piece.Color); return(new PawnPromotion(startingSquare, endingSquare, promotedTo, null)); }
static void Main(string[] args) { asker = new InfoAsker <string>(); asker.AskingInfoEvent += asker_AskingInfoEvent; asker.AskAndWaitForInfo(); }