-
-
Notifications
You must be signed in to change notification settings - Fork 183
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
complete frogger-game #466
Conversation
Hey! Congratulations on your PR! 😎😎😎 Let's do some self-checks to fix most common issues and to make some improvements to the code before reviewers put their hands on the code. Go through the requirements/most common mistakes linked below and fix the code as appropriate. If you have any questions to requirements/common mistakes feel free asking them here or in Students' chat. When you genuinely believe you are done put a comment stating that you have completed self-checks and fixed code accordingly. Also, be aware, that if you would silently ignore this recommendation, a mentor can think that you are still working on fixes. And your PR will not be reviewed. 😒 Please, make sure that your code follows the requirements Universal recommendations:
By the way, you may proceed to the next task before this one is reviewed and merged. Sincerely yours, |
discarded |
See what the bot asked you to do. It is unlikely that the code will be reviewed until you accomplish self-check and fixes and explicitly confirm that you did this. I just noticed that you have nearly the full-house of submissions. It would be a shame if closed PR would block your progress. |
My bad, I missed bot's recommendations. Self-check done! And I have question about this
Why is it better? In this case I can accidentally redefine elements in object and don't even get an error |
It is not better in general. It says "Const objects help organizing and structure const data even better"
So just pick what works better for the project, readability and code maintenance. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@drewzag perfect job done!
const allEnemies = [] | ||
for (let i = 0; i < 3; i++) { | ||
let count = i | ||
if (i >= 3) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this ever happen?
Minor issue.
You may want to fix this in your project repo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've played more than 3 enemies. I'll fix this!
Thanks for your review)
Frogger Game
Demo |
Code base
The code is submitted in a dedicated feature branch.
Only code files are submitted.
Please, review.