Have students implement the dice game Flip in Java to introduce unit testing and to give students practice using loops and data structures.

  • This assignment is described as a "Simple but subtle dice game is a source for many Google-proof assignments."
  • For the full assignment, Stanford’s nifty assignment page.
    • There is even a breakdown that focuses on data structures you can use in a CS 2 level course (see the section titled CS1/2).