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

Small ambiguity in Practice Chapter 13 #926

Open
thomaswebbers opened this issue Feb 19, 2024 · 0 comments
Open

Small ambiguity in Practice Chapter 13 #926

thomaswebbers opened this issue Feb 19, 2024 · 0 comments
Labels
content Issues with the lessons, practices, including their code examples

Comments

@thomaswebbers
Copy link

The question asks to write a take_damage script and the hp cannot go below 0.

The solution line is: health -= amount

typing health =-amount is obviously incorrect, but this is a common mistake for beginners and isn't clearly caught by the app.

Furthermore, the difference between "health -= amount" and "health =-amount" is not made clear in the previous section where this concept is introduced.

I suggest either this difference is added to the chapter OR that what would be even better is have it be part of the error debug helper you have made.

Thank you for reading and this course/app

@thomaswebbers thomaswebbers added the content Issues with the lessons, practices, including their code examples label Feb 19, 2024
@thomaswebbers thomaswebbers changed the title Small ambiguity in Practice CHapter 13 Small ambiguity in Practice Chapter 13 Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content Issues with the lessons, practices, including their code examples
Projects
None yet
Development

No branches or pull requests

1 participant