Nobody has really been fooled in the Turing test yet, but that doesn’t mean computers aren’t capable of deceiving. Researchers in the United Kingdom have taught an artificial intelligence (AI) how to create magic tricks, Wired reports. By showing the computer how to perform a trick, and how it fools humans, scientists were able to teach the AI two different tricks—one using cards and the other using jigsaw puzzles. After the computer understood the rules, it was able to come up with new variants of the tricks much faster than people could, and the new versions could still be performed by a human magician. The card trick, which relies on the computer’s ability to predict the identity of a card based on the color of the cards around it, has been made into an Android app, which you can watch in action above.