Puzzle | Gun, Missile and Robot
There are three people (Ajay, Bhuvi and Chandu), one of them is a Gun, one a missile, and one a robot. The Gun always tells the truth, the missile always lies, and the robot can either lie or tell the truth.
Ajay : “Chandu is a missile.”
Bhuvi : “Ajay is a Gun.”
Chandu : “I am the robot.”
Find out the Gun, the missile and the robot?
Ajay is Gun
Bhuvi is robot
Chandu is missile
Bhuvi is not the Gun, since if he is, then Ajay would also be the Gun.
Chandu is not the Gun, since his statement would then be a lie.
So Ajay is the Gun, Chandu is the missile, and Bhuvi is the robot.
This article is contributed by Ajay Puri. If you like GeeksforGeeks and would like to contribute, you can also write an article using write.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.