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

Use note passing for explaining the difference between methods with no return (void methods) and methods with return to provide students with a relatable example.
Have students find the best method of sorting a group of unknown weights to teach them about sorting algorithms.
Use the “fence post” method when teaching Java’s substring method to help students use it accurately.

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

Privacy Policy