Python Simulation of the Blue Eyes Island Puzzle
The blue eyes island is a tricky logic puzzle that has several variations. The one I was first told was:
A group of people live in an island with no contact with the outside world.
Eyes color is big taboo for them and they strictly follow this rule: if anybody figures out the color of their own eyes, they will commit suicide the following night.
Everybody knows the eyes color of all the other islanders, but nobody knows their own eyes color.
Guillaume Chereau Website