Lesson 19. Capstone project: Scrabble, Art Edition

After reading lesson 19, you’ll be able to

  • Apply conditionals and loops to write a more complicated program
  • Understand what’s being asked of you in a program
  • Draw up a plan of how to solve a problem before starting to code
  • Break the problem into smaller subproblems
  • Write code for the solution

You’re playing a simpler version of Scrabble with your kids. The kids have been winning most games so far, and you realize it’s because you aren’t picking the best word from the given tiles. You decide that you need a bit of help in the form of a computer program.

The problem

Write a program that can tell you words that you can form from a set of tiles; the set of all valid words is a subset ...

Get Get Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.