Skip to main content
CS Teaching Tips

Main navigation

  • Browse All Tips
  • Tags
  • 3D
  • About
  • Rate Tips
  • Tip Sheets

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

Share Have students implement the dice game Flip in Java to introduce unit testing and to give students practice using loops and data structures. with FacebookShare Have students implement the dice game Flip in Java to introduce unit testing and to give students practice using loops and data structures. with Twitter
  • This assignment is described as a "Simple but subtle dice game is a source for many Google-proof assignments."
    • Check out the rules of Flip!
  • 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).

More about this tip

Tags

  • Java
  • Data Structures
  • CS 1
  • Intro Programming
  • CS 2
External Source
Stanford’s Nifty Assignment by Cay Horstmann
Other Tips By
Other Tips By Cay Horstmann

Similar tips

Help students build intuition about recursion in Python by comparing each recursive call to a function call, which may be more intuitive for students in introductory classes.
Students tend to make assumptions about computer science based on the experiences they’ve already had with computers.
When learning in a playful context, students are less likely to be frustrated by difficulty or failure.

For more information or to report a bug, contact us at admin@csteachingtips.org. Built with Bootstrap. Powered by Drupal.

Privacy Policy