Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement