Prog 5: Mancala

Create a Mancala program where you can play against a computer opponent.  If you are not familiar with the game see mancalatime.com, which is very similar to the rules we will be using (but not exactly the same).  That board online looks like: 

We will create a text-based representation of the board instead, and will only use 3 "stones" per hole, which will look like:

Author: Dale Reed  Program 5: Mancala  TA: Fred A. Stair, T 6:00 AM  Nov 28, 2012

Welcome to the game of Mancala, where you are playing against a computer opponent.  Your holes are on the bottom row and you get to go first.

-------------------------------------------

          A    B    C    D    E    F          -----------------------------      ----|  3 |  3 |  3 |  3 |  3 |  3 |----    |  0 |                             |  0 |     ----|  3 |  3 |  3 |  3 |  3 |  3 |----          -----------------------------            A    B    C    D    E    F 1. Select a move (A..F)-> D

          A    B    C    D    E    F          -----------------------------      ----|  3 |  3 |  3 |  3 |  3 |  3 |----    |  0 |                             |  1 |     ----|  3 |  3 |  3 |    |  4 |  4 |----          -----------------------------            A    B    C    D    E    F    You get another move -> A

          A    B    C    D    E    F          -----------------------------      ----|  3 |  3 |  3 |  3 |  3 |  3 |----    |  0 |                             |  1 |     ----|    |  4 |  4 |  1 |  4 |  4 |----          -----------------------------            A    B    C    D    E    F    Squares in column D are captured.

          A    B    C    D    E    F          -----------------------------      ----|  3 |  3 |  3 |    |  3 |  3 |----    |  0 |                             |  5 |     ----|    |  4 |  4 |    |  4 |  4 |----          -----------------------------            A    B    C    D    E    F

  -------------------------------------------    Computer chooses C

          A    B    C    D    E    F          -----------------------------      ----|  4 |  4 |    |    |  3 |  3 |----    |  1 |                             |  5 |     ----|    |  4 |  4 |    |  4 |  4 |----          -----------------------------            A    B    C    D    E    F    Computer gets another move.    Computer chooses F

          A    B    C    D    E    F          -----------------------------      ----|  4 |  4 |  1 |  1 |  4 |    |----    |  1 |                             |  5 |     ----|    |  4 |  4 |    |  4 |  4 |----          -----------------------------            A    B    C    D    E    F    Squares in column C are captured.

          A    B    C    D    E    F          -----------------------------      ----|  4 |  4 |    |  1 |  4 |    |----    |  6 |                             |  5 |     ----|    |  4 |    |    |  4 |  4 |----          -----------------------------            A    B    C    D    E    F

-------------------------------------------

          A    B    C    D    E    F          -----------------------------      ----|  4 |  4 |    |  1 |  4 |    |----    |  6 |                             |  5 |     ----|    |  4 |    |    |  4 |  4 |----          -----------------------------            A    B    C    D    E    F

2. Select a move (A..F)-> 

   . . .

The rules of the game might seem complicated, but once you play it they make sense.  (Modified slightly from the Ask.com Mancala page)

Notes