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

Sample code 11-3 #24

Open
tarabelo opened this issue Apr 6, 2020 · 2 comments
Open

Sample code 11-3 #24

tarabelo opened this issue Apr 6, 2020 · 2 comments
Assignees

Comments

@tarabelo
Copy link

tarabelo commented Apr 6, 2020

The sample code 11-3 at page 222 doesn't work as expected.

@machinelevel
Copy link
Contributor

machinelevel commented Jun 20, 2020

Hi there! (just catching up on these...)
Regarding sample 11-3, I've just tried it, and I want to make sure it's working for you.

When I run it as-is using the Exercise 11-3 link, it runs this circuit:

image

...and produces this state (looking just at the first 16 circles, all others are empty):

image

This matches the tile in row 3, column 2 in the sample output as shown in Figure 11-10:

image

By changing the tile position on lines 17 and 18 of the sample:

image

...you can get any other tile to render.

I do notice that in the book itself the specified tile is 2,1 instead of 2,3. Is this the problem you're pointing out?

In any case, if you can clarify the issue you're seeing I'll be happy to help fix it.
Cheers,
- ej

@machinelevel machinelevel self-assigned this Jun 20, 2020
@3625365git-tx
Copy link

@machinelevel
There's nothing wrong with this code, but one question remains: can it show the entire 16 by 16 image like the one in the book?

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

3 participants