[root]/src/jturtle
images
(4 files, 7 lines)
Author | Changes | Lines of Code | Lines per Change |
---|---|---|---|
Totals | 50 (100.0%) | 990 (100.0%) | 19.8 |
sgould | 35 (70.0%) | 744 (75.2%) | 21.2 |
archerh | 9 (18.0%) | 197 (19.9%) | 21.8 |
eutomo | 6 (12.0%) | 49 (4.9%) | 8.1 |
Removed unused imports and commented-out code.
4 lines of code changed in 1 file:
Mostly just fixing up code and adding comments to methods. Changed a little bit of error handling behavior so user gets presented a message in a dialog box instead of just in the terminal, but it still closes the application for some incorrect inputs
38 lines of code changed in 2 files:
Minor cleanup: got rid of some print statements.
1 lines of code changed in 1 file:
Added event handler so the user can select an image from their library and use it as the turtle. Added IF and TO tokens.
73 lines of code changed in 1 file:
trying to get assignment to work. eutomo
5 lines of code changed in 1 file:
Changed openfile to JMenuBar instead of button
11 lines of code changed in 1 file:
Added showturtle method to JTurtle to use in ShowTurtle and HideTurtle instructions
22 lines of code changed in 2 files:
BatchInterpreter (reading commands in from an external file) doesn't work when the file includes an EOF_Token. TOWARDS still isn't working, see email for details on what I think should work but I can't think of the geometric equivalent of it at the moment. Need to be able to use variables as expressions (ex: x=50;FORWARD x), currently can't. Dialog box closes automatically except when the commands in the selected file don't parse.
8 lines of code changed in 1 file:
Got rid of ExpressionParser. Added option to choose a SLogo file to parse and execute. Need to fix button location and size, sorry it's so ugly at the moment. Working on Towards instruction (before it was moving forward, trying to perfect the geometry of having it return just the angle needed to have the turtle pointing TOWARD that point. Doesn't move the turtle, doesn't work properly, but it's a work in progress.
75 lines of code changed in 1 file:
Added a clearLines() method to JTurtle to clear the turtle's trail in the CLEAN and CLEARSCREEN instructions
10 lines of code changed in 1 file:
Added ability to change pen stroke to either solid (default), dotted, or dashed via the GUI. Also refactored some code into methods, and made some changes to variable access modifiers related to the pen
79 lines of code changed in 3 files:
Moved TurtlePen class out of JTurtle and into TurtlePen
11 lines of code changed in 2 files:
Added instruction/token/parser for pendown, penup, and pendownp. Also made TurtlePen into its own subclass (inside of JTurtle), to clean up the code. And I added some error handling to BACK, FORWARD, RIGHT, and LEFT
199 lines of code changed in 3 files:
2 lines of code changed in 1 file:
A couple of GUI updates, as well as uncommenting a line in IdentifierParser. Also removed some unimplemented things from the instructions.prop file
1 lines of code changed in 1 file:
Added the additional functionality for the pen. It now fully matches what is needed for the extension. Not the best code, so hopefully there will be time to refactor at some point.
101 lines of code changed in 2 files:
now aliases (including those with ? in their names). for commands that /require/ ?, we should consider whether we want to accept with /without/ ?. eutomo
7 lines of code changed in 1 file:
eutomo. Four Boolean commands work. Changed EQUAL the = to EQUALSIGN everywhere it was needed so that EQUAL can be a Boolean command.
2 lines of code changed in 1 file:
Some GUI improvements and added parser/instruction/token for heading, home, setxy, xcor, ycor.
18 lines of code changed in 2 files:
Added turtle line with pen up/pen down functionality. Still need to work on figuring out how to modify the other things that need to be modified to finish the extension (line width, color, etc.)
170 lines of code changed in 2 files:
Changed SLogoParser so it does not depend on expression or expressionParser, and parse method returns a GrammarElement rather than an Instruction and takes no parameters. Since parse() no longer takes a Reader, you'll have to re-initialize SLogoParser for every new string, although this should only matter to the TurtleField. Removed while loop in parse, which will matter for batch mode but not for the command-line mode. Don't update to this for now if you want prior updates to work. Mostly comitting so Eric can made progress based on the new changes.
4 lines of code changed in 1 file:
Added SetX and SetY implementations. Started SetXY but have some questions on how to complete this. Also changed the instructions to use a variable to refer to the turtle instead of a string (Dr. Sprenkle said we should change that). The string is defined in TurtleField (I think that's where I put it), but I'm not confident that's the best place for it.
6 lines of code changed in 2 files:
Added back, left, and right instructions, parsers, and tokens. Also made turtle image smaller because it minimizes the shift when switching directions.
1 lines of code changed in 1 file:
2 lines of code changed in 1 file:
updated gui size and turtle starting location. Tried to figure out drawing line, but was unable (I think I deleted all of this code)
3 lines of code changed in 2 files:
1 lines of code changed in 1 file:
2 lines of code changed in 2 files:
working version for FORWARD 50
calls default constructor, not specifying new turtle image
need to add FD token
7 lines of code changed in 2 files:
4 lines of code changed in 2 files:
43 lines of code changed in 2 files:
Slightly altered Forward.java to extend Instruction so that it parallels structure of other Instructions. Changed TextField to receive text when "ENTER" key is pressed, then parsing this text as a StringReader. Currently only works on assignment and gives errors for other instructions. Changed SLogoParser to return an Instruction rather than nothing.
--Haley
25 lines of code changed in 1 file:
Further fixed the GUI and added different turtle as image
4 lines of code changed in 1 file:
Made some preliminary GUI updates and deleted some excess code that we had in TurtleField. Planning on doing more with the GUI, but wanted to go ahead and commit these changes.
20 lines of code changed in 1 file:
This is the stuff we did Nov 21 at night. A lot of thoughts on paper, very productive, Happy Thanksgiving. Just 2 changes but a lot of thought out on paper.
31 lines of code changed in 1 file:
First Import
502 lines of code changed in 3 files: