79332392

Date: 2025-01-06 07:38:45
Score: 1.5
Natty:
Report link

Your code doesn't work because Player is a struct (value types) so in your draw function, you actually add card to a copy version of an element in players array (which is selectedPlayer). Answer of @workingdog works because it modify array element directly

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @workingdog
  • Single line (0.5):
Posted by: duckSern1108