Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package csc216project3;
- public class FreeCell {
- FreeCellGame game;
- FreeCellView view;
- public FreeCell(String x) {
- game = new FreeCellGame(Integer.parseInt(x));
- view = new FreeCellView(game);
- }
- public FreeCell() {
- game = new FreeCellGame();
- view = new FreeCellView(game);
- }
- public FreeCellGame getGame() {
- return game;
- }
- public static void main(String[] args) {
- FreeCell myGame;
- if (args.length == 0)
- myGame = new FreeCell();
- else
- myGame = new FreeCell(args[0]);
- }
- }
Add Comment
Please, Sign In to add comment