Author | Changes | Lines of Code | Lines per Change |
---|---|---|---|
Totals | 67 (100.0%) | 1308 (100.0%) | 19.5 |
sgould | 38 (56.7%) | 680 (52.0%) | 17.8 |
dillardj | 8 (11.9%) | 243 (18.6%) | 30.3 |
archerh | 11 (16.4%) | 177 (13.5%) | 16.0 |
eutomo | 9 (13.4%) | 168 (12.8%) | 18.6 |
username | 1 (1.5%) | 40 (3.1%) | 40.0 |
Removed unused imports and commented-out code.
1 lines of code changed in 4 files:
Added event handler so the user can select an image from their library and use it as the turtle. Added IF and TO tokens.
127 lines of code changed in 2 files:
Added showturtle method to JTurtle to use in ShowTurtle and HideTurtle instructions
7 lines of code changed in 3 files:
Updated the towards instruction so that it just returns the int heading needed to face coordinates, instead of turning turtle. Had it turning the turtle before just for testing purposes, and everything is working as it should.
6 lines of code changed in 1 file:
Updated towards instruction so that it works correctly I think
19 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.
38 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
3 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
185 lines of code changed in 8 files:
ClearScren, Showturtle, hideturtle, and clean
96 lines of code changed in 5 files:
the boolean parsers weren't showing up so i'm recomitting my code. eutomo
2 lines of code changed in 1 file:
1 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.
125 lines of code changed in 6 files:
Some GUI improvements and added parser/instruction/token for heading, home, setxy, xcor, ycor.
171 lines of code changed in 5 files:
Fixed SumParser, added Difference, Product, Quotient, all are parsing properly. Fixed other parsers (BACK, LEFT, RIGHT, SETX, SETY) to parse properly without ExpressionParser. Use this format from now on when writing parsers so it works properly with math operations. Y'all have a great weekend, let me know if something I did doesn't work as it should.
4 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.
5 lines of code changed in 1 file:
Token, Parsers, and instructions for TOWARDS, CLEAN, and CLEARSCREEN
147 lines of code changed in 3 files:
40 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.
146 lines of code changed in 7 files:
Updated the forward, back, left, and right instructions to move relative to the current orientation of the turtle. This is how they are supposed to work, but previously I had them implemented as always moving north, south, east, west.
3 lines of code changed in 4 files:
Added back, left, and right instructions, parsers, and tokens. Also made turtle image smaller because it minimizes the shift when switching directions.
133 lines of code changed in 4 files:
Updated version that forward method evaluates number entered, not just uses 50
1 lines of code changed in 1 file:
took out all print statements
0 lines of code changed in 1 file:
6 lines of code changed in 1 file:
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
2 lines of code changed in 1 file:
Nov24, 5pm. Eric: I have done my part due Tuesday night. At this point, if you guys find mistakes, PLEASE let me know and I will try to fix them.
40 lines of code changed in 1 file:
First Import
276 lines of code changed in 5 files: