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

Bug in Task 2.2.1 and 2.2.2 #22

Open
MKFeuer opened this issue Oct 10, 2023 · 1 comment
Open

Bug in Task 2.2.1 and 2.2.2 #22

MKFeuer opened this issue Oct 10, 2023 · 1 comment

Comments

@MKFeuer
Copy link

MKFeuer commented Oct 10, 2023

Hello
i finde some Bug in Task 2.2.1 and 2.2.2

The bug is that in the last column of binary numbers where 256 should be, there is no number if there is a beeper in the column.

I hope you can fix it

@fredoverflow
Copy link
Owner

That is a conscious decision to demonstrate integer overflow:

Karel wants to add 1 to a byte.
Karel wants to subtract 1 from a byte.

Bytes only go from 0 to 255. The leftmost beeper is the carry bit.

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

No branches or pull requests

2 participants