Skip to main content

Probability Riddle Using Python: Team with Three Hats

 Riddle:

Three players in a team, each receives a hat (could either be red or blue).

These are the rules of the game: 

• The players act as a team. The team wins or loses, not individuals. 

• When the hats have been placed on the heads there must be no communication between team members. 

• All must answer simultaneously. 

• Each is allowed to pass rather than guess a colour. 

• The team wins if at least one player guesses correctly and none guess incorrectly. Otherwise, or if they all pass, it loses. 

Note that it is perfectly permissible for the team to discuss a strategy before the placement of the hats; the question is, what strategy will maximize their chance of success?


Python Solution:


Riddle source:

https://books.google.jo/books?id=a1EUZ5qZkm8C&printsec=copyright&redir_esc=y#v=onepage&q&f=false