k014's parametric magic cards

k014's parametric magic cards

prusaprinters

<p>This is a parametric set of cards (quantity of card can be configured) that allow the owner to do a simple but amazing magic trick, here are the details:</p><h3>Example Routine</h3><ul><li>The magician ask the spectator to think in a number between 1 and N (N is configurable)</li><li>Once the spectator is done, the magician handles all cards to the spectator</li><li>The magician ask the spectator: "Please hand me all cards in which your number appears"</li><li>Then, once the cards are separated, the magician ask for all rest of cards</li><li>Then the magician take a quick look to the cards saying it will quickly see which number is missing from the rest pile</li><li>Then the magician announces: "I see, the only number missing in the rest pile is number X!"</li><li>The spectator, amazed, and the magician donates to the creator of this thing :)</li></ul><h3>Explanation</h3><p>Of course, the previous example routine, is just an example, and the steps can be made in the order you want or change it as you like, what is important is to not reveal the secret:</p><h3>Secret</h3><p>Each card has a number in the top left corner, which you need to sum agains all card where the number appears, for example, if you are given 3 cards which corner numbers that are [1,4,8], then the number the sepectator thought was 1+4+8 = 13, simple right?</p><h3>Why it works?</h3><p>well, if you know how binary numbers work, each number in binary can be represented by a string of zeros and ones, for example, the first 4 numbers in binary are (check the pattern)</p><p>0001 = 1 0010 = 2 0011 = 3 0100 = 4 as you can see, each number is a specific combination of 0's and 1's, same as decimal system, in which each number is a combination of 10 digits (0 to 9), with that known, a 0 can be represented as "not present" and 1 can be "present", or in our case "number NOT present in card", "number present in card", this means for example:</p><p>0101 = 5 you will be given only 2 cards:</p><p>0001 = 1 +0100 = 4 -------------- 0101 = 5 then, the sum of the corners 1+4 = 5, the number the spectator thought</p><h3>Algorithm</h3><p>I created a python script to generate the magical cards based in how many cards you want to have, in the STL provided in this thing, I configured the script for 7 cards, but it will work with any number of card, for example, if you select 2 cards, it will generate the following cards:</p><p>[1, 3] [2, 3] an then you will only be able to guess numbers from 1 to 3, wanna try?, here are the possible combinations:</p><p>the spectator says his number appears in this cards:<br>[1,3]<br>result<br>the number is 1, summing the corner numbers: 1</p><p>the spectator says his number appears in this cards:<br>[2,3]<br>result<br>the number is 2, summing the corner numbers: 2</p><p>the spectator says his number appears in this cards:<br>[1,3]<br>[2,3]<br>result<br>the number is 3, summing the corner numbers: 1+2=3</p><p>and the are no other combination possible for the range 1 to 3, simple uh?</p><h3>Try before you print!</h3><p>check this image with all cards generated using 7 as input (then 7 cards generated)</p><ul><li>think in a number between 1 and 127, you got it?, cool</li><li>sum the top left corner of each card in which that number appears</li><li>voila!, it has to be your number :)</li></ul><h5>Printing Recomendations</h5><p>This cards were designed to be printable using multicolor gcodes, you dont need to have a multi color printer, you just need to add a pause in the gcode in order to change filament color during print, I am using "color print" tool from prusaprinters.org, but there are tons of tutorials in youtube, I printed my last 2 cards in black just to see how they look, no need to do the same :D</p><ul><li><a href="https://www.prusaprinters.org/color-print/">https://www.prusaprinters.org/color-print/</a></li></ul><p>As always all my designs are opensource, since is code, I dont want to push code in thingverse because I want people to improve it and send me pull requests or if I do any change you will always download the latest version, here it is:</p><p><a href="https://github.com/joecabezas/python-magic-cards">https://github.com/joecabezas/python-magic-cards</a></p><h3>Dependencies:</h3><ul><li><a href="https://github.com/SolidCode/SolidPython">https://github.com/SolidCode/SolidPython</a></li><li>Openscad</li></ul><p>Category: Games</p>

Download Model from prusaprinters

With this file you will be able to print k014's parametric magic cards with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on k014's parametric magic cards.