This program would be difficult to write if you were required to do so
without using methods. The first challenge, then, is to decide how to
split the assignment into parts. I recommend the following steps:
- Play the game with a friend (keeping track of turns, scores, etc.,
by hand). Try to observe the steps you find yourself doing and realize
that you will need the computer to perform the same tasks.
- Try to describe a solution to this problem using two, three, or
four steps. Plan to use a method to solve each of those steps.
Put your plan in writing.
- For each method (from the previous step) try to describe how it
can be accomplished using fewer than 10 statements. If any of those
statements is fairly complex then plan for those to be a separate
method. Put your plan in writing.
- Continue decomposing the problem until each step is fairly
well-defined. Continue to write down each set of steps.
At the end of this process you should have identified four or five
individual methods and you should have fairly detailed steps for what
each method will have to accomplish.