Skip to content

daison12006013/veritasium-prisoner-logic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Veritasium's "The Riddle That Seems Impossible Even If You Know The Answer"

Proving Veritasium's logic https://www.youtube.com/watch?v=iSNsgj1OCLA

How to install?

go mod download

How to execute the command

./run prisoner --count=1000
Preparing boxes!
Randomizing the box contents!
Prisoner's starting to find their boxes!
Probability: 42.10%

./run prisoner --count=69999
Preparing boxes!
Randomizing the box contents!
Prisoner's starting to find their boxes!
Probability: 37.92%