Open
Conversation
CodeCoreTA
reviewed
Oct 1, 2022
| this.maxX = 0; | ||
| return this; | ||
| } | ||
| forward(step) { |
There was a problem hiding this comment.
try if and else if for the conditional block
CodeCoreTA
reviewed
Oct 1, 2022
| a = new Turtle(0, 0); | ||
| } | ||
| for (let i = 0; i < inputArr.length; i++) { | ||
| if (inputArr[i][0] == "f") { |
There was a problem hiding this comment.
try if and else if for the conditional block
CodeCoreTA
reviewed
Oct 1, 2022
| // Function to split the script input into an array | ||
| // and run the script using the values | ||
| function runTurtleScript(input) { | ||
| let inputArr = input.split("-"); |
CodeCoreTA
reviewed
Oct 1, 2022
| //and run scripts accordingly | ||
| function scriptWithOption(input) { | ||
| // If there are no input | ||
| if (input == undefined) { |
CodeCoreTA
reviewed
Oct 1, 2022
| return; | ||
| } | ||
| // If the proper option were passed in | ||
| else if (input.slice(0, 9) == "--output=") { |
There was a problem hiding this comment.
just a suggestion if you don't want to rely on the position: input.includes("--output=")
CodeCoreTA
reviewed
Oct 1, 2022
|
|
||
| return fs.writeFile(input.slice(9), data, (err) => { | ||
| if (err) { | ||
| console.log(err); |
TURTLE GRAPHICS HOMEWORK 2SCORESHEET FOR STUDENT EricCreate a simple drawing program inspired by Turtle Graphics.It will be a much simpler implementation that will only acceptright angles (90 degrees).GRADING CRITERIA:Course Value: 5%Assignment Value: 100%GRADE:
LATE ASSIGNMENTS WILL BE DEDUCTED 5% OFF PER 24 HOURS, FOR A MAX OF 20% DEDUCTION OVERALL. Part 1: Submitted and on Time
Part 2: Features
Part 3: Stretches
ASSIGNMENT RUBRIC
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.