CSC 216/BeanExceptions: Difference between revisions
(First Draft by Patrick Finegan) |
(Pretty Headings by Patrick Finegan) |
||
Line 1: | Line 1: | ||
Game: Bean Exceptions | ==Game: Bean Exceptions== | ||
by Max Gallagher and Patrick Finegan. | by Max Gallagher and Patrick Finegan. | ||
===Purpose=== | |||
This excercise is to help a class more actively participate in learning about throwing and catching exceptions. | This excercise is to help a class more actively participate in learning about throwing and catching exceptions. | ||
===Setup=== | |||
A team is 6-9 people (or one row). In the team there is one "runner" and the rest are "staff." | A team is 6-9 people (or one row). In the team there is one "runner" and the rest are "staff." | ||
Line 10: | Line 12: | ||
The different colored beanbags will represent common exceptions (NullPointerException(), ArrayIndexOutOfBounds(), etc...). On the screen will be a powerpoint presentation with different scenarios where exceptions would be thrown and caught. | The different colored beanbags will represent common exceptions (NullPointerException(), ArrayIndexOutOfBounds(), etc...). On the screen will be a powerpoint presentation with different scenarios where exceptions would be thrown and caught. | ||
===The Game=== | |||
For each scenario the staff throw beanbags to the front where the runners catch these exceptions/bean bags. (It is suggested that all laptops be removed from deskspace for this activity) | For each scenario the staff throw beanbags to the front where the runners catch these exceptions/bean bags. (It is suggested that all laptops be removed from deskspace for this activity) | ||
Line 21: | Line 24: | ||
After 10 seconds of bean bag filled chaos, the scores are tallyed. | After 10 seconds of bean bag filled chaos, the scores are tallyed. | ||
===Scoring=== | |||
1 Point will be awarded for the correct beanbag thrown by the staff. | 1 Point will be awarded for the correct beanbag thrown by the staff. | ||
1 Point will be awarded for the correct beanbag caught by the runner. | 1 Point will be awarded for the correct beanbag caught by the runner. | ||
Line 27: | Line 31: | ||
-1 Points will be deducted for incorrectly caught beanbags. | -1 Points will be deducted for incorrectly caught beanbags. | ||
===Victory=== | |||
The team that scores the most points will win a delicious cake. | The team that scores the most points will win a delicious cake. |
Revision as of 19:58, 12 November 2009
Game: Bean Exceptions
by Max Gallagher and Patrick Finegan.
Purpose
This excercise is to help a class more actively participate in learning about throwing and catching exceptions.
Setup
A team is 6-9 people (or one row). In the team there is one "runner" and the rest are "staff."
The runners for each team go and stand in the front of the room. The staff stays in their seats. The staff will be handed different colored (and possibily numbered) bean bags.
The different colored beanbags will represent common exceptions (NullPointerException(), ArrayIndexOutOfBounds(), etc...). On the screen will be a powerpoint presentation with different scenarios where exceptions would be thrown and caught.
The Game
For each scenario the staff throw beanbags to the front where the runners catch these exceptions/bean bags. (It is suggested that all laptops be removed from deskspace for this activity)
The job of the staff is to throw the correct beanbag. The job of the runner is catch the correct beanbag. The runner does not neccesarily have to catch the beanbag thrown by his team.
A beanbag counts as thrown when it has left a staff members hands is headed to the front of the room.
A beanbag counts as caught if the runner is still holding the beanbag when the time to tally scores is called.
After 10 seconds of bean bag filled chaos, the scores are tallyed.
Scoring
1 Point will be awarded for the correct beanbag thrown by the staff. 1 Point will be awarded for the correct beanbag caught by the runner. 0 Points will be awarded for uncaught/unthrown exceptions. -1 Points will be deducted for incorrectly thrown beanbags. -1 Points will be deducted for incorrectly caught beanbags.
Victory
The team that scores the most points will win a delicious cake.