/* * Board.java * * Created on January 22, 2007, 11:29 AM * * To change this template, choose Tools | Template Manager * and open the template in the editor. */ package Mancala; /** * Keeps all the game's pits and kalahas and relays messages to them * @author Sophie Quigley */ public class Board { // CLASS CONSTANTS // CLASS VARIABLES // INSTANCE VARIABLES /** * Swing user interface associated with this board */ public static int mm = 0; private MancalaUI ui; /** * Mancala game associated with this board */ private Game game; /** * Array of all the kalahas in this board */ private Pit[] kalahas = new Pit[Game.PLAYERS]; /** * Array of all the pits in this board */ private Pit[] pits = new Pit[Game.PITS]; // CLASS METHODS /** Creates a new instance of Board */ public Board() { for (int player=0; player