Skip to content

Files

Latest commit

 

History

History
17 lines (10 loc) · 485 Bytes

README.md

File metadata and controls

17 lines (10 loc) · 485 Bytes

Little Bit of Magic

Wanna experience magic? Like, real magic?

$ bundle install
$ bundle exec shotgun --server=puma

Go to http://localhost:9393/ and enjoy!

Behind the scenes

Interested in how the magic trick works? Let me explain:

  • Each yes/no answer is translated into a 0/1 resulting in a sequence of bits.
  • End with a binary-to-decimal transformation and you get the (magic) number in decimal.

Not so magical after all, I guess 😁