Built with blockbuilder.org
Yesterday my 9-year old daughter showed me a “magic” trick from her school:
- I had to think of a number between 1 and 60
- She had six cards prepared with numbers written on them
- She showed me one card after the other and I had to say if my number is on it or not
- The order of the cards is irrelevant
- Based on my answers she immediately knew the number I thought of
For the solution play through the example or see the code :)