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...
~/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♥ |