Guest User

Untitled

a guest
Jul 18th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. package csc216project3;
  2.  
  3. public class FreeCell {
  4.  
  5. FreeCellGame game;
  6. FreeCellView view;
  7.  
  8. public FreeCell(String x) {
  9. game = new FreeCellGame(Integer.parseInt(x));
  10. view = new FreeCellView(game);
  11. }
  12.  
  13. public FreeCell() {
  14. game = new FreeCellGame();
  15. view = new FreeCellView(game);
  16. }
  17.  
  18. public FreeCellGame getGame() {
  19. return game;
  20. }
  21.  
  22. public static void main(String[] args) {
  23. FreeCell myGame;
  24. if (args.length == 0)
  25. myGame = new FreeCell();
  26. else
  27. myGame = new FreeCell(args[0]);
  28. }
  29.  
  30. }
Add Comment
Please, Sign In to add comment