Add six blocks to this template to produce a math magic trick. The starter code will ask the player if their number is on screen. Your job is to figure out what to do to the magic number variable if it is. If you're program works, the program will tell the player what their secret number is after the player answers the six questions. Try to figure this trick out on your own. Hint: it is based on powers of two / base two / binary numbers. To understand how this trick works, visit this link: http://www.pleacher.com/mp/puzzles/tricks/base2.html Feel free to upgrade or modify this in any way you see fit!
Images for this trick were screen captured from http://www.pleacher.com/mp/puzzles/tricks/base2.html