← Questions
Card game: pick cards that sum to 15
0
I was asked this
No reports yet. Sign in to say where you were asked it.
You get a small existing codebase for a card game played with a 36-card deck, and you may use an AI assistant. The game revolves around picking cards whose values add up to 15 (the common version asks for three cards).
- Find and fix the bug that makes the provided tests fail.
- Implement the function that finds cards adding up to 15 among the cards available.
- Make it faster, then improve the playing strategy so it scores as many points as possible over a game, and explain how you evaluated it.
No official answer yet. Write yours on the right and run it.
Nothing published yet.
Sign in to submit your code; every attempt is kept here.
Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding
