Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impossible Chessboard Puzzle / Hamming Code visualization #1818

Open
arathorn76 opened this issue Jan 17, 2024 · 0 comments
Open

Impossible Chessboard Puzzle / Hamming Code visualization #1818

arathorn76 opened this issue Jan 17, 2024 · 0 comments

Comments

@arathorn76
Copy link

Inspired by: 3 blue 1 brown video https://www.youtube.com/watch?v=wTJI_WuZSwE a chessboard puzzle that can be solved using hamming codes.

A sample implementation I did can be found at https://editor.p5js.org/arathorn76/sketches/biqRaqcQ_

The core of the puzzle is to mark one specific cell of an 8*8 grid.
At start all 64 cells hold a coin randomly showing heads or tails.
The warden hides the key under one of the cells.
Prisoner 1 / Player 1 knows where the key is hidden. He turns exactly 1 coin over.
Then Prisoner 2 / Player 2 comes into the room. He has no other information than the state of the board and must find the key in 1 try.
On success -> freedom

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant