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 Problets.org to help students practice programming basics in C++, Java, C#, or Visual Basic
Have students think about a reference to an object as a numeric memory address to help them understand how passing references works.
Have some students pretend to be robots while other students program them to complete simple tasks to practice debugging and to emphasize the importance of coding precisely.
  • CSTT Facebook
  • CSTT Twitter

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

Privacy Policy

  • National Science Foundation
  • Sage Fox Group
  • Harvey Mudd College