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

Prototype Makey Makey, a simple invention kit for the classroom that helps students turn everyday items into keyboard buttons, to bring Scratch programming projects into the real world and engage your students.
Emphasize the importance of documentation when working with spreadsheets or any programming language for future reference.
Have students play a game of Telephone and trace the path of a message to introduce how computers create phylogenetic trees.
  • 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