Which four jobs split rock, paper, scissors?
- Get choices, compare, decide winner, announce
- Shuffle, guess, print, quit
- Ask once, decide twice, print thrice
What is the first move when facing a big program?
- Write the whole thing at once
- Split it into a few named jobs
- Start with the hardest line
You can test decide_winner with made-up picks before the rest exists.
Circle one: True False
What does announce_result take in?
- Both picks to compare
- The winner, which it then prints
- The rules of the game
What does get_choice give back?
- The final winner
- Nothing at all
- One player's pick
Where does the rock-beats-scissors rule live?
- Inside decide_winner
- Inside get_choice
- Inside announce_result
A part needs the robot's view and must answer safe or not. What should it take and give?
- Take nothing in, print everything
- Take the view in, give the decision back
- Take the decision in, give the view back
A friend writes a quiz program as one giant block and gets lost. What advice fits?
- Add more lines to cover every case
- Test only after the whole thing runs
- Split it into named parts before coding on