Challenge for Jumping around - break, continue, return

Challenge

In the game of OddCards, only the odd-valued cards count. Each hand of cards is worth the sum of the odd-valued cards. However, multiples of 3 are deadly! If you get a card that is odd and is a multiple of 3 you lose all your points and the hand is scored at 0.

You will be given an array cards that contains the integer values of a hand of cards. Write a method that returns the score of cards.

Please sign in or sign up to submit answers.

Alternatively, you can try out Learneroo before signing up.

Contact Us
Sign in or email us at [email protected]