CSci 2101 Lab 5. Programming with Java classes.

We will be implementing a 2-player game of War.

Starts Tue Feb 11th in the lab, will continue Mon Feb 17th and Tue Feb 18th.

Tentatively: 50 points

Your code will be shared on google docs. You will get an email with the folder link.

The lab is done in groups of 3.

Part 1: finishing the Card class

Design and implement the Card class according to the tests. This will be done all together, the "Coding Dojo" style.

Part 2: figure out other classes needed for the game.

Every group proposes classes and their key methods. Then the sketch of the solution is written. This will also be done all together.

Part 3: implementing the needed classes.

Every group implements and tests their classes. Make sure to put your names in comments so that other groups know who the authors are in case something needs fixing or tweaking. Finished code is posted on the course wiki

Please pay attention to the methods' specification. If anything is unclear, verify it with the relevant group or groups. Failure to follow the specification and failure to communicate when such communication is needed will result in a lower grade.

Part 4: testing another group's code.

Groups that are done with their code will test other groups' methods. If a problem is discovered, contact that group and work with them on fixing the issue.

Part 5: putting it all together and final debugging.

The code is put together. Necessary final tweaking is done.

Part 6: enjoy the game!

How to submit:

Send me all of the code you worked on at the end of the lab (CC your group). The lab grade is based on in-class activities and the code sent to me at the end of the lab (or, if final, incorporated into the solution).

CSci 2101 course web site.

The views and opinions expressed in this page are strictly those of the page author. The contents of this page have not been reviewed or approved by the University of Minnesota.