Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 1 KB

README.md

File metadata and controls

44 lines (32 loc) · 1 KB

21 Card Trick

This is a project written in C (gcc Linux) of the 21 Card Trick, you can learn about it in wiki-how.

This code does the trick! ;)

Compiling

There is three files to compile executing

 gcc -o trick Trick.h Trick.c main.c

Usage

Just start the program

 ./trick

Example

Check this example where I chose the K♣

Documentation

Those methods are the heart of the program

Layout(int * v, int n)
Lay out the cards, three across and seven down.

Place(int * v, int n, int c)
Place the group selected in between the other two groups of cards

Tutorial

I write a post about this project in my blog

Author

Abner Díaz @abnerick

License

This project in under terms of the MIT License