Giter Site home page Giter Site logo

slogo's People

Contributors

e-yoshi avatar ej48 avatar ellangoj avatar rfish6 avatar scotchval avatar srwareham avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

danapark98

slogo's Issues

We still have Todo's

Title is kind of self explanatory.
Also are we checkstyle approved in all of our classes?
Its probably fine if there are some super ridiculous ones left in though.

Multiple Instruction Parsing

Hey, just saw this as I was fixing the InstructionMapFacotry class: when the parser deals with multiple instructions on the same line, the movement don't work correctly.
I.e. when fd 100 fd 100 fd -200 should keep the turtle in the same place but draw lines, we see the turtle move

Saving state

Sean, you said today that the save option in the menu bar would give the Controller no parameters, and that the state would be saved to some default location. But now I was thinking it might be a good idea if there is also a file chooser menu for that too, same as how File -> Save As in most programs brings up a dialog box to select a file to save to. I think its easy to implement.

Some example code:
JFileChooser chooser = new JFileChooser();
// only files with a .slogo file extension to be opened
FileFilter filter = new FileNameExtensionFilter("SLogo data files", "slogo"); chooser.setFileFilter(filter);

// to load a file
int returnVal = chooser.showOpenDialog(parent component);
if (returnVal == JFileChooser.APPROVE_OPTION) {
File file = chooser.getSelectedFile();
controller.loadState(new FileInputStream(file));
}

// to save a file
int returnVal = chooser.showSaveDialog(parent component);
if (returnVal == JFileChooser.APPROVE_OPTION) {
File file = chooser.getSelectedFile();
controller.saveState(new FileOutputStream(file));
}

Console / History is broken

Hey guys I just noticed that if you type in any value then push the submit button it always returns >> 0 then a 0 on the next line. This is not the case when you push the forward or backward button. Additionally have we added the feature that it will simply ignore lines starting with >> ? I think we should begin to document implementation features in our readme. Cuz otherwise we're in for a long night (probably the case any way)

AutoSave

we made a method that will autosave the environment if the user selects that they want to turn autosave on. It would be nice to have an autosave button in the file menu so that the user can select it. We created an enum to keep track of the state:

/**
 * A type representing whether the Controller should save the environment
 * automatically or only when the user specifies to
 *
 */
public enum SaveOption {
    AUTO, MANUAL;
}

and we have this method in the Controller that is used to set the state of the enum:

public void setSaveOption (SaveOption option) {
    mySaveOption = option;
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.