DanielM08 / magic-trick

This project aims to create a "mind-reading" magic trick!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This project aims to create a "mind-reading" magic trick!

Problem description

The trick consists of arranging a deck of 21 cards into three piles of seven cards each, the user should be asked to pick a card and tell the pile on which the chosen card is contained. You should now rearrange the cards into three new piles, always keeping the pile that was appointed by the user in the middle of the other two. This process is repeated two more times (making a total of 3 rounds), after that, if the piles were correctly arranged in every round, the card that was picked by the user, in the beginning, will be placed in the middle of the deck (11th card).

Here are some resources explaining with more details how the trick works and the way it should be applied to be successful:

Application

The aplication was developed using the Decks of Cards API.

The application demo can be found at: Magic Trick

How to run

Clone the project, than in magic-trick repositosy, install dependencies with:

npm i

Runs the app in the development mode with:

npm start

Open (http://localhost:3000) to view it in the browser.

License

This project is licensed under the MIT License - see the LICENSE file for details

About

This project aims to create a "mind-reading" magic trick!

License:MIT License


Languages

Language:JavaScript 79.8%Language:CSS 12.6%Language:HTML 7.7%