Consider the game of Scrabble.
- List all the data involved in representing the game. Be thorough.
- How might this data be divided into abstract chunks? What idea does each chunk represent?
- Draw a flow chart of the game play. Break it up into methods of different levels of detail.
- How do these methods associate with the chunks of data above.
- Design a collection of classes representing these chunks. What fields and methods do they have?
- How many objects of each class will you need to create? How will they connect to each other?
- Write the main method of your game. It should:
- Create the objects.
- Start the game.
- Write method signatures for the other methods you will use. Do not write the code, just decide on what the necessary chunks are at each level of detail.
- Write “pseudocode” comments in each method describing the steps it should take and the other methods that it should call.
- Challenge: Write the complete game.
No Comments so far ↓
Comments are closed.