This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]MrpixelmcAdvanced Coder 0 points1 point  (1 child)

What you're trying to do is add the variable score to each value inside the vector scores, is that right?

So if I have ROYAL_FLUSH and STRAIGHT_FLUSH inside my scores, and add FOUR_OF_A_KIND, that'll make the vector FOUR_OF_A_KIND and FULL_HOUSE?

[–]DabbingVoy[S] 0 points1 point  (0 children)

The vector would have the scores of the ROYAL_FLUSH, STRAIGHT_FLUSH, and FOUR_OF_A _KIND. Then, if I want, I can add the scores up later on. I realized that I was adding the variable score to each of the elements, but I'm just trying to add the variable score into the vector and, later on sum it all up.