
bakersGame
By: a guest on
Feb 17th, 2013 | syntax:
None | size: 1.07 KB | hits: 26 | expires: Never
import java.util.*;
import javax.swing.JOptionPane;
/**
* Write a description of class GameBoard here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class GameBoard
{
protected ArrayList<Stack<Card>> gameCells = new ArrayList<Stack<Card>>();
protected ArrayList<Stack<Card>> holdingCells = new ArrayList<Stack<Card>>();
protected ArrayList<Stack<Card>> finalCells = new ArrayList<Stack<Card>>();
protected Deck newDeck = new Deck();
private final int CARDCELLS = 8;
private final int HFCELLS = 4;
public GameBoard(){
for(int i = 0;i<CARDCELLS;i++){
gameCells.add( new Stack<Card>());
}
for(int i = 0;i<HFCELLS;i++){
holdingCells.add( new Stack<Card>());
finalCells.add( new Stack<Card>());
}
}
public GameBoard(GameBoard copy){
this.gameCells = copy.gameCells;
this.holdingCells = copy.holdingCells;
this.finalCells = copy.finalCells;
this.newDeck = copy.newDeck;
}