Want more features on Pastebin? Sign Up, it's FREE!
Guest

bakersGame

By: a guest on Feb 17th, 2013  |  syntax: None  |  size: 1.07 KB  |  views: 29  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. import java.util.*;
  2. import javax.swing.JOptionPane;
  3. /**
  4.  * Write a description of class GameBoard here.
  5.  *
  6.  * @author (your name)
  7.  * @version (a version number or a date)
  8.  */
  9. public class GameBoard
  10. {
  11.     protected ArrayList<Stack<Card>> gameCells = new ArrayList<Stack<Card>>();
  12.     protected ArrayList<Stack<Card>> holdingCells = new ArrayList<Stack<Card>>();
  13.     protected ArrayList<Stack<Card>> finalCells = new ArrayList<Stack<Card>>();
  14.     protected Deck newDeck = new Deck();
  15.     private final int CARDCELLS = 8;
  16.     private final int HFCELLS = 4;
  17.     public GameBoard(){
  18.         for(int i = 0;i<CARDCELLS;i++){
  19.             gameCells.add( new Stack<Card>());
  20.         }
  21.         for(int i = 0;i<HFCELLS;i++){
  22.             holdingCells.add( new Stack<Card>());
  23.             finalCells.add( new Stack<Card>());
  24.         }
  25.     }
  26.     public GameBoard(GameBoard copy){
  27.        
  28.         this.gameCells = copy.gameCells;
  29.         this.holdingCells = copy.holdingCells;
  30.         this.finalCells = copy.finalCells;
  31.         this.newDeck = copy.newDeck;
  32.        
  33.     }
clone this paste RAW Paste Data