The value of the new attack card must match the value of any attacking or defending card played in the current attack. The deck consists of 36 cards that include four suits of 6, 7, 8, 9, 10, jack, queen, king and ace. Value of cards is considered as ranked from low to high. To…