Changed the way we accessed the user subroutines text area so that our fields stay private and hence stay closed to modification. Also, removed some unused imports. Should be all from me. Nice job everyone! #TheRainbowSprenkles
30 lines of code changed in 5 files:
Changed Frame names to be more descriptive. #TheRainbowSprenkles
2 lines of code changed in 1 file:
Committed all of the files that had been changed. The last commit hadn't committed them. #TheRainbowSprenkles
15 lines of code changed in 7 files:
Added the third extension to the project, namely displaying the user defined subroutines. #TheRainbowSprenkles
24 lines of code changed in 1 file:
Got Rid of the unused import in the slogo.instrcuction package. #TheRainbowSprenkles
1 lines of code changed in 8 files:
Added text area
25 lines of code changed in 1 file:
Pop up window for procedures.
568 lines of code changed in 1 file:
More button realignment on TurtleField
15 lines of code changed in 1 file:
Comments and fixing toString()
109 lines of code changed in 11 files:
Changed button orientation in turtleField
278 lines of code changed in 1 file:
still working on pop up window.
27 lines of code changed in 1 file:
Uploading new popup window for procedures. #therainbowsprenkles
595 lines of code changed in 2 files:
Small fix in SubroutineFactory and fixed typo in Instructions.prop
4 lines of code changed in 2 files:
2 lines of code changed in 4 files:
SumParser
0 lines of code changed in 1 file:
Attempt to re-committ ToParser
34 lines of code changed in 1 file:
Attempt to commit To instruction.
43 lines of code changed in 1 file:
Added code to allow the user to choose a display image for the turtle. Still need to add the code that actually changes the turle's image. #TheRainbowSprenkles.
54 lines of code changed in 1 file:
more work on implementing the extension for the turtle image.
#therainbowsprenkles
3 lines of code changed in 1 file:
Subroutine and SubroutineFactory committed
125 lines of code changed in 2 files:
Variable committed.
1 lines of code changed in 1 file:
ExpressionParser committed
2 lines of code changed in 1 file:
GrammarElementParser committed.
18 lines of code changed in 1 file:
IdentifierParser being committed
17 lines of code changed in 1 file:
Committing instructions.prop
2 lines of code changed in 1 file:
Committing the ToToken class.
13 lines of code changed in 1 file:
Fixed a casting between double and integer problem in Repeat.
#therainbowsprenkles
1 lines of code changed in 1 file:
Committing extension for changing turtle image.
right now, just uses the "turtle.gif" originally in images.
#therainbowsprenkles
41 lines of code changed in 2 files:
Implementing GrammarElement. #therainbowsprenkles
105 lines of code changed in 26 files:
Fixed an error that was causing some .wav files to not be opened. Redirected error from opening an audio sound to the output textfield. Made the playMusic method non-static. #TheRainbowSprenkles
19 lines of code changed in 1 file:
Added a decent .wav music file we can use to test our add a sound functionality.. #TheRainbowSprenkles
0 lines of code changed in 1 file:
More GrammarElement instead of Expression.
#TheRainbowSprenkles
43 lines of code changed in 6 files:
Implemented GrammarElement in Minus and Quotient.
Fixed toString in Greater and Less.
#therainbowsprenkles
18 lines of code changed in 4 files:
Added code to allow the user to choose a music file to play as background music. #TheRainbowSprenkles
60 lines of code changed in 1 file:
Implemented SUM DIFFERENCE and PRODUCT with GrammarElementParser.
52 lines of code changed in 4 files:
Changed return values to doubles instead of integers.
#TheRainbowSprenkles
4 lines of code changed in 2 files:
Modified the If command so that it's fully functional.
5 lines of code changed in 1 file:
Equal is working with full functionality.
Important note to self/team: All commands that return a number (even just 0 or 1) must return a double value (so 0.0 and 1.0)!
7 lines of code changed in 2 files:
Changed Greater, GreaterParser, Less, LessParser to use GrammarElement
#theRainbowSprenkles
60 lines of code changed in 4 files:
Implemented GrammarElementParser on getx and gety. Fixed cs and clean ArrayIndexOutOfBoundsException
5868 lines of code changed in 12 files:
Committing the if command instruction, parser, token.
Committing the changes from Expression to GrammarElement for the Equal instruction and parser.
Committing the instructions.prop file.
174 lines of code changed in 6 files:
Added code to allow the user to choose the background image from his file system. #TheRainbowSprenkles
741 lines of code changed in 2 files:
committing the towards command the new instructions.prop file
114 lines of code changed in 4 files:
Slightly cleaned up our dictionary of aliases
2 lines of code changed in 1 file:
Began working on the extension to set the background with Jean Paul
#TheRainbowSprenkles
37 lines of code changed in 3 files:
Deleted the print statement that was making the evaluate method run twice in the execCommand method. The print was introduced as part of an debugging effort. #TheRainbowSprenkles
0 lines of code changed in 1 file:
Changed the NotEqual? command to return 1 if num1 is NotEqual to num2, 0 otherwise. #TheRainbowSprenkles
5 lines of code changed in 1 file:
Changed the Less? command to return 1 if num1 is Less than num2, 0 otherwise. #TheRainbowSprenkles
4 lines of code changed in 1 file:
Changed the Greater? command to return 1 if num1 is Greater than num2, 0 otherwise. #TheRainbowSprenkles
4 lines of code changed in 1 file:
Changed the Equal? command to return 1 if equal, 0 otherwise. #TheRainbowSprenkles
4 lines of code changed in 1 file:
Added the NotEqual? command. #TheRainbowSprenkles
85 lines of code changed in 4 files:
Added the Equal? command. #TheRainbowSprenkles
84 lines of code changed in 3 files:
Committing files that hadn't been committed when I added the Greater? command. #TheRainbowSprenkles
106 lines of code changed in 9 files:
Added the Greater? num1 num2 command. #TheRainbowSprenkles
33 lines of code changed in 5 files:
Added Less? num1 num2 command. Also, removed the sorting of aliases as it was leading to incorrect matchings. Instead, each added alias must be put at the end of the appropriate array so that the matchings will heavily depend on the positions of instructions in the respective arrays. #TheRainbowSprenkles
105 lines of code changed in 5 files:
Made sure we don't read empty lines in a file in the parseInstructionsInFile method.
3 lines of code changed in 1 file:
Added code the saveContentsToFile method to save contents to a file. Currently saving content from the myCommands textfield. Is general enought to save content from any textfield. #TheRainbowSprenkles
35 lines of code changed in 1 file:
Added the parseAndEvaluateCommandsInFile method. This method allows us to have the openFile method be responsible for only opening a file and thus comply with the single responsibility principle. Also, its makes the code more extensible since we will surely need to parse and evaluate instructions in a file more often. #TheRainbowSprenkles
10 lines of code changed in 1 file:
Separated code to save and open files in two different methods to comply with the single responsibility principle. Will also need to change the way they are handled to comply even further with this principle. Also, changed the name of the method to open a file program to make it more readable. #TheRainbowSprenkles
17 lines of code changed in 1 file:
Added the Save to File Button. Note that currently it's not working. Still need to add code for it to save instructions to the file. Also added code in the executeProgram method ( will need a better name...) to handle the saveButton. #TheRainbowSprenkles
55 lines of code changed in 1 file:
Changed color of turtle and path.
#theRainbowSprenkles
5 lines of code changed in 1 file:
Added the minus token to the instructions.prop file. Committing the current working copy we have just tested for the in class demo to come. #TheRainbowSprenkles
9 lines of code changed in 6 files:
Cleaned up the code for a bit, not that much changed. #TheRainbowSprenkles
3 lines of code changed in 1 file:
Added setMyOutPutTextfield method that redirects most of the output to the output textfield. Also, for choosing files, the user will either press enter in the "Choose a file to open"(myProgramFile textfield) or press the "open a file" button. Will decide if we want to allow the user to enter the full path of his/her file. #TheRainbowSprenkles
19 lines of code changed in 2 files:
Added the OpenFile Button. Now the user will be able to choose the file of instructions from his/her own file system. Also, I left the user the freedom of simply typing in the file's full path. #TheRainbowSprenkles
46 lines of code changed in 1 file:
Added instructions to draw a square to our tester file so we can have a sample program that is meaningful for our testing purposes.#TheRainbowSprenkles
15 lines of code changed in 1 file:
When I changed minus token from "-" to "minus" earlier, an error occurred in CharTokenFactory that made some of the commands not work such as fd sum 10 10.
1 lines of code changed in 1 file:
Added helper method in Jturtle for the pendownp command.
Added alias for pendownpcommand.
Added comments in PenDownP.java, PenDownPToken.java, QuotientParser.java, MinusToken.java
19 lines of code changed in 6 files:
PenDownP command.
Right now, I just have it printing to the console. 1 = true, 0 = false.
At some point, we can work on the gui and having return statements print to there.
#therainbowsprenkles
85 lines of code changed in 4 files:
Added "&& steps != 0" to the if statement where the current point is added to the line.
I then added code (getting the initial point to the line) to when penOn is set to true.
#TheRainbowSprenkles
3 lines of code changed in 1 file:
Adding clearscreen command.
Fixed the toString method in Clean.
#TheRainbowSprenkles
108 lines of code changed in 5 files:
Lines are now drawn correctly with Pendown! The problem was that I was adding the point to the line-list AFTER notifyListeners was being called. Oops. But now that will work correctly for our demo tomorrow. GO TEAM
#TheRainbowSprenkles
17 lines of code changed in 1 file:
Added aliases mapping for PD and PU
2 lines of code changed in 1 file:
Although Pd is not yet perfect (I must figure out how to get the line to draw once more; I'm pretty close) I am finished for the day and it hasn't broken anything so I will commit it! I have implemented Pu, Pd, and Clean. This should also include their respective parsers and tokens and the updated instructions list. I have not changed the program to allow the user to type in PenUp or PenDown yet, but I can mess with this later.
Pd draws lines, Pu stops drawing lines (but keeps them on the screen), and Clean removes all the lines.
#TheRainbowSprenkles
272 lines of code changed in 12 files:
Working on Clear and Minus commands. neither are on the instructions.prop list yet because Clear will mainly deal with clearing the pen trail (which I can't test yet) and I have a question about minus. #TheRainbowSprenkles
171 lines of code changed in 6 files:
Fixed the processCommand method in TurtleField to support commands such as "FORward SUm 10 10". #TheRainbowSprenkles
10 lines of code changed in 1 file:
Fixed something in QuotientParser.
Forgot to commit the mod expression.
#therainbowsprenkles
29 lines of code changed in 2 files:
added remainder command #therainbowsprenkles
100 lines of code changed in 4 files:
A bit of documentation. Added read_program_tester for testing reading in from a file. Currently, can read from a file valid instructions separated by new lines.
#TheRainbowSprenkles
22 lines of code changed in 3 files:
Added our usual tolerance for commands (i.e ForWard,BacKWard,Bk,etc..) when reading subroutines from a file. #TheRainbowSprenkles
10 lines of code changed in 2 files:
Reading a program from a file now working. Serious code cleanup to follow. Also, thinking about adding maybe some delay so that we can see the turtle executing the program.
#TheRainbowSprenkles
54 lines of code changed in 2 files:
Adding product and quotient commands.
#TheRainbowSprenkles
193 lines of code changed in 7 files:
Added a textField for the user to enter the name of the file containing his/her program. Implementation will follow soon. #TheRainbowSprenkles
18 lines of code changed in 1 file:
Remove unused imports in most of the files. #TheRainbowSprenkles
0 lines of code changed in 9 files:
added Sum and Difference commands
Works with "fd sum 10 10", other tests.
Also, I'm finally remembering to commit instructions.prop at the same time!
#TheRainbowSprenkles
198 lines of code changed in 7 files:
Changed Heading command so that it returns a double. Modified the Fd, Bk, Rt, and Lt commands and their respective parsers to use the GrammarElementParser class instead of ExpressionParser so that we can call commands such as 'bk heading' or 'lt xcor'. Design is cleaned up and neat, and everything is fully functioning.
46 lines of code changed in 10 files:
Oops. Added an else statement dealing with if there is an unary command that does not have an alias (ex. home). So, it works now! #TheRainbowSprenkles
2 lines of code changed in 1 file:
Implemented the aliases for ht and st.
#TheRainbowSprenkles
21 lines of code changed in 3 files:
We now have the beginnings of a test (feel free to rename it and add to it if you get bored)
Also, we have the Pd token and parser, but I still need to implement Pd itself; I have committed the beginning of it so you can see it, but it still needs work.
#TheRainbowSprenkles
112 lines of code changed in 3 files:
Added variable and method for visibility.
11 lines of code changed in 1 file:
Added st and ht commands
#TheRainbowSprenkles
183 lines of code changed in 7 files:
GrammarElementParser is functioning as desired. Applied GrammarElementParser successfully to the Fd command, which can now move Fd 50 or Fd heading. The logic in Fd.java uses an if/else statement to determine if the Object returned by evaluate is a Double or Integer, which most likely is sub-optimal design to be looked at in the near future. #TheRainbowSprenkles
9 lines of code changed in 2 files:
Implemented the Heading command. Partial implementation of GrammarElementParser made. New parser is applied to Fd command, Fd Heading works correctly, but there are some bugs with regular Fd commands (i.e. Fd 50). #TheRainbowSprenkles
93 lines of code changed in 4 files:
Changed the Access modifier of the Point2D myPoint field in JTurtle class to private. See previous commit ( hadn't committed the right class in the previous commit...) #TheRainbowSprenkles
0 lines of code changed in 1 file:
Change the access modifier of the Point2D myPoint field in JTurtle to private to preserve the shyness of our code. It was previously public static.
#TheRainbowSprenkles
4 lines of code changed in 2 files:
Suppressed the warning "rawtypes" for the tokenClass in TokenFactory class--- slogo.parser.token package. #TheRainbowSprenkles
1 lines of code changed in 1 file:
Removed unused imports in the slogo.parser package. Also suppressed some warnings that could confuse us. #TheRainbowSprenkles
3 lines of code changed in 7 files:
Removed unused imports. In the last commit, I meant the slogo.instruction package. Sorry for the confusion, but should make sense now. #TheRainbowSprenkles
0 lines of code changed in 1 file:
Did some cleanup in the slogo.parser package. Improved documentation and instead of using Turtle.myPoint, used its getPoint() method to allow our code to stay a bit shy...Also removed unused imports along the way. #TheRainbowSprenkles
55 lines of code changed in 10 files:
Resolving conflict in instructions file
94 lines of code changed in 5 files:
Added the YCor Command. Also removed the turtle.move(0) statement in Xcor #TheRainbowSprenkles
89 lines of code changed in 5 files:
Added the Xcor Command. Will figure out where to output its return value ( the Turtle's XCoordinate) in a future commit #TheRainbowSprenkles
92 lines of code changed in 4 files:
Removed "import slogo.Context" as it is not necessary. #TheRainbowSprenkles
1 lines of code changed in 2 files:
Removed imports that were no longer necessary for these classes. #TheRainbowSprenkles
0 lines of code changed in 2 files:
Added aliasesToCommands map to map aliases to commands that have aliases. Each time a command that has an alias is added, add it to this private map. Avoids potential long if-statements in the processCommand method.
#TheRainbowSprenkles
54 lines of code changed in 1 file:
Implemented SetXY.
106 lines of code changed in 4 files:
Fixed Home command so that it does not take an expression as a parameter.
Fixed Left command so that the angle displayed is always >= than 0 and correct.
8 lines of code changed in 3 files:
Implemented the RIGHT and LEFT commands.
123 lines of code changed in 8 files:
Oops.
Forgot to commit the instructions.prop file.
#TheRainbowSprenkles
22 lines of code changed in 2 files:
Added Home command
Added an if statement in processCommand to return unary commands.
#TheRainbowSprenkles
116 lines of code changed in 5 files:
Implemented the Context and made all the instructions adhere to the Context fix. #TheRainbowSprenkles
74 lines of code changed in 12 files:
See last commit comment.
1 lines of code changed in 1 file:
Had trouble committing because of conflicts in Fd and TurtleField with Drew's earlier commits so had to go back and figure out what was wrong. Everything is working now though.
#TheRainbowSprenkles
51 lines of code changed in 1 file:
454 lines of code changed in 2 files:
Added SetX and SetY to instructions.prop
3 lines of code changed in 1 file:
Not sure what I changed in here... #TheRainbowSprenkles
6 lines of code changed in 1 file:
2 lines of code changed in 1 file:
Added SetX and SetY commands.
#TheRainbowSprenkles
199 lines of code changed in 6 files:
Implemented preparation for RT command
23 lines of code changed in 7 files:
Rt command instruction file / token file.
55 lines of code changed in 2 files:
Parser and token for Rt command.
#TheRainbowSprenkles
48 lines of code changed in 2 files:
Cleaned up code
#TheRainbowSprenkles
50 lines of code changed in 4 files:
Documentation.
#TheRainbowSprenkles
13 lines of code changed in 2 files:
Documented some methods in TurtleField.java. #TheRainbowSprenkles
14 lines of code changed in 1 file:
Oops. Forgot to commit this one earlier when I added the command.
2 lines of code changed in 1 file:
Changed Context and its downstream dependencies so that it is a Turtle object instead of a Double value. This way we can access the turtle's position in the GUI from anywhere.
46 lines of code changed in 7 files:
Added Back command. Works with bk, BK, BACKWARD, and backward. #TheRainbowSprenkles
100 lines of code changed in 4 files:
Renamed preprocessText to processCommand and fixed the string equality error. #TheRainbowSprenkles
4 lines of code changed in 1 file:
Fixed the split method, so it is splitting on the empty space.
1 lines of code changed in 1 file:
Added method in TurtleField to process the commands so that if a user types Forward, the program knows to do FD.
#TheRainbowSprenkles
13 lines of code changed in 1 file:
Added line where FD, fd, Fd, fD, etc are all seen as same command (FD). #TheRainbowSprenkles
1 lines of code changed in 1 file:
Changed the label on the bottom text box.
100 lines of code changed in 1 file: