Nice Monday everybody!
This Challenge will be a lot of fun. It will be again a nice use case to help you with your productivity. Your boss (if you have one) and also your colleagues will be amazed by your productivity and especially with how fast you reply to your emails. I bet you will be now always the first one to reply, since you are about to build a robot, that will automatically reply to every message.
But it won’t be just an “out of office” reply. It will be much smarter! Almost artificial intelligence!
Goal of this Challenge
Create a robot that will:
- Take every received email.
- Examine the body of that email.
- For each sentence that ends with question mark
- copy that sentence and add a random answer from an array of prepared answers such as: “Yes”, “Indeed”, “I am not sure.”, “I have to think about it”, “I don’t think it will be any problem.”, “Maybe.”, “No.”, “I disagree.” (etc).
- To each sentence that ends with question mark but begins with When or the question contains “what time”:
- answer with a random time (such as: “4 'o clock” or “03:15”)
- For each sentence that ends with question mark
Example incoming email:
Hello Eric,
are you coming to tomorrow’s party? There will be also vegetarian food. Is your wife also coming with you? When would you like to head to town? I will take my car so you two can join me, if you want. What do you think about it?
Trevor
Example reply:
Hi,
thank You for your message. To your questions:
-are you coming to tomorrow’s party?
I am not sure.
-When would you like to head to town?
17:00
-What do you think about it?
No
Kind regards, Eric.
I believe your boss and colleagues will love this same as you.
How to participate?
When you are happy with your robot:
- send .xaml (or another source) file as a private message directly to me (click my profile picture → Message)
First three correct, original solvers earn 3 robopoints, next get 1 robopoint.
I will hold a leaderboard with your score and update it. Those on top positions will be badged by a special challenger badge
The challenge deadline is 29. 8. 5.9. by the end of the day. You can still submit your projects after the deadline but you cannot earn robopoints. A new challenge is published every week or 2 weeks so don’t worry if you did not catch this one. Keep in mind, your submitted files may be published after the deadline so others can learn from solutions.