Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new solution #2

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

new solution #2

wants to merge 2 commits into from

Conversation

Danbaba1
Copy link

@Danbaba1 Danbaba1 commented May 31, 2022

#1

@Ifycode
Copy link
Member

Ifycode commented May 31, 2022

About linking a pull request to an issue

@Danbaba1 You want to always link your pull request to the particular issue it addresses. So that one can easily navigate back to the issue.

Edit your comment above. Copy what is in the box below and add it in there. This will turn to a link that takes you to the particular issue for this pull request. The issue number is #1 thats why you're using #1 in the end. So for another issue, check the issue number to know what number to add. I explained this in that video I asked you to watch.

Ifycode-support/Danbaba1-exercism-issues#1

About your branch name

You can use the name of the task as branch name or any other thing that describes what the branch is for, not your own name.

About your code

I left a review comment below. Take a look and add other missing things in your code.

3.js Outdated
@@ -1,13 +1,13 @@
export function canExecuteFastAttack(knightIsAwake) {

return !KnightIsAwake;
Copy link
Member

@Ifycode Ifycode May 31, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since i don't know if it's in one function or all functions, I'm just going to give a "general" review for all the functions.

You didn't include the constants or variables you declared for knightIsAwake and others inside your code. So I don't know if you used true or false value. I don't have super powers to read your mind, nor can I know what you did on exercism.

Which is why I wrote in the instruction that you should replace the content of this file with what you have on exercism.

So remove the entire content of this file and add the exact content you have on exercism - including the variables you declared... include everything. Also let me know which of the functions you have issues with after you have done this.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i went back to the code after reading your comments and its working now. i changed the const declaration to a var declaration so it ran. thank you ma.

* @returns {boolean} Whether or not you can send a signal to the prisoner.
*/
var archerIsAwake = false;
var prisonerIsAwake = true;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Look at line 16 here. It's supposed be true not false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants