Skip to content

abnerick/21CardTrick

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

21 Card Trick written in C (Linux)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages