Advertisement
Guest User

bakersGame

a guest
Feb 17th, 2013
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement