I am having problem thinking of a way to determine a winner of a hand, or if its a draw.
I have a players vector which holds Player objects.
I use
for(int i=0; i<players.size(); i++) players.get(i).bet() etc to play the game
however,
how I can go through the vector and determine a winner or find out if its a draw? One way is to sort it and get the last element , but if its a draw?
Any ideas, or my players in a vector idea is rubish? I though using a vector because you never know how many players will play and if I used conditional structure it would limit it.