Code problems D: Help? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Code problems D: Help?

Im making a card game, and this function adds all of the card values together. In the array im getting them from, it says, for instance, 6 S (6 of Spades), but it keeps resulting in 20. Any ideas? :D https://code.sololearn.com/W0U8MCo44Bp0/?ref=app

15th Oct 2017, 11:52 PM
Polytiel
Polytiel - avatar
2 Answers
+ 7
If possible, please provide a Minimal, Complete, and Verifiable code to increase your chance to get an answer. 😉
16th Oct 2017, 12:27 AM
Zephyr Koo
Zephyr Koo - avatar
+ 1
@Zephyr Koo Sorry xD Here it is: https://code.sololearn.com/W0U8MCo44Bp0/?ref=app
16th Oct 2017, 1:27 AM
Polytiel
Polytiel - avatar