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

Focus on simple examples in a breadth course about systems to avoid confusing students. Save depth for upper level courses.
Have students design a Java program that detects plagiarism within a set of documents so that they gain practice designing and applying data structures in a relevant context.
Play musical chairs to explain while loops so students develop physical experience navigating through the structure of a loop to better understand while loops.

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

Privacy Policy