Skip to content

alexwechsler/CardMatrix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Card Matrix Implementation

Hello this project takes 4 sets of High Order Cards (A, K ,Q , J) and re-arranges them such that a 4x4 Matrix is produced where each column, row and major diagonal is unique in its order..

To execute simply run 'ruby run.rb'

Please see below for sample output...

Sample

~/dev/CardMatrix via 💎 v2.6.8
➜ ruby run.rb
===Original Hand===
K♣ | Q♥ | J♦ | A♠ |
A♦ | K♥ | J♥ | K♦ |
Q♣ | J♣ | A♣ | J♠ |
K♠ | Q♦ | Q♠ | A♥ |

=Reordered Matrix==
K♣ | Q♥ | J♦ | A♠ |
J♠ | A♦ | K♥ | Q♣ |
A♥ | J♣ | Q♠ | K♦ |
Q♦ | K♠ | A♣ | J♥ |

Contact

Alex Wechsler

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages