Okay, so... I'm very close to finishing my coding project.
The problem I'm having is that currently, the code as it stands "works" except for when comparing card point values and determining the winner of each hand. The point values aren't assigned properly.
For example when I run this code, the console says,
"Player 1 drew ♣️ J while Player 2 drew ♦8
Player 2 wins a point!"
When it should be player 1.
Currently the values are based on where in the array each card sits, which doesn't work because that means different suits of the same value aren't reading as equal, and some values that should be read as higher (Jack of Clubs) are reading as lower than smaller value cards (8 of Diamonds).
I think what I need to do is set up object oriented programming and create objects/classes for the card values within each suit, so that a Jack of Diamonds is the same value as a Jack of Clubs.
But I'm having trouble figuring out how to implement that properly and I think I need some help.
I will attach the current code in a message below.