package slogo_team02;

import java.awt.Dimension;
import java.util.ResourceBundle;

import javax.swing.JFrame;

import commands.Command;
import model.Model;
import parse.Node;
import View.Display;

public class Controller {
	/*
	 * The Controller class serves as a bridge between the View and the Model
	 */
	private static final String TITLE = "SLogo";
	public static final Dimension SIZE = new Dimension(1200, 900);
	
	private void doModel(String input){
		Model model = new Model();		
		model.setState(0, 0, 0);
		model.doCommands(input);	
	}
	
	private void doView(){
		Display display = new Display(null, null); 
		JFrame frame = new JFrame(TITLE); 
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
        // add our user interface components to Frame and show it
        frame.getContentPane().add(display);
        frame.setSize(SIZE);
        frame.setVisible(true);
        
	}
	
	//main method to test
	public static void main(String[] args) {
		Controller c = new Controller();
		c.doModel("ifelse 0 [ fd 5 ] [ back 20 ]");
		c.doView();
		//c.doModel("rePEat 5 [ fd sum 4 sum 4 5 ]");
	}


}

@@ -1101,15 +1101,32 @@
  5 %5D%22);%0A
+%09%09//test commit %0A
 %09%7D%0A%0A%0A%7D%0A

test commit2