puts 'You see a lamp on the floor of a dusty room. Do you pick it up and rub it?' lamp=gets.chomp if lamp=='No' puts 'You turn around, and walk out of the room, always to wonder whether or not you should have rubbed it...' else if lamp=='Yes' puts 'You walk up to the lamp and stroke it. Suddenly a genie bursts out and says "You have released me from my eternal prison. I shall now grant you one wish! State it in "I wish for (blank)" format please. State it, and it shall be done."' wish=gets.chomp if (wish== 'I wish for world peace' or wish== 'I wish for the end of world hunger') puts 'That\'s very thoughtful of you. It shall be done!' else if (wish== 'I wish for the winning lottery ticket' or wish== 'I wish for $1,000,000') puts 'That is very selfish of you, but I must hold a promise. Your wish shall be granted.' else puts 'Your wish is my command.' end end puts 'You walk out of the dusty room, into the sunshine, awaiting a changed life as a result of your recently granted wish.'