2nd Exercise: dPP (test first)

By Thursday class next week (2/9/06), do the following:

  1. Use the same pairs as for exercise 1 (for the 3rd exercise we will do a pair rotation... I will construct the new pairings)

  2. Write, as a distributed pair, using JUnit testing and test-first development, Java classes to implement a Mancala game with no GUI interface. Here are rules for Mancala.

    You should implement a game using the Egyptian rules.

  3. For output, simply print an ASCII representation of the board after each move is input. Note that once a player has selected the bowl he/she will use for a turn, the resulting distribution of stones is fixed. Thus input for a move can simply be a number or some bowl designation typed in.

    We may study later an adaptation of JUnit for testing Swing-based GUIs.