-
Notifications
You must be signed in to change notification settings - Fork 441
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
A multi-window game of life application example #1812
Conversation
3D next? :) |
if (life_out[get_index(down_right)] == 1) { alive_count += 1; } | ||
if (life_out[get_index(down)] == 1) { alive_count += 1; } | ||
if (life_out[get_index(down_left)] == 1) { alive_count += 1; } | ||
if (life_out[get_index(left)] == 1) { alive_count += 1; } |
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 didn't check if the index can go out of range at borders. Intuition says a crash would occur, but it does not.
Uh. Will fix the build error… |
Do you think this makes the old multi-window example obsolete? If so, you could remove it. Also, slight nitpick, but it's 2022. :) |
I don't know if it does. The old multi-window is plain and simple. In a way nothing wrong with it. I'll consider it I'll change the year... |
I truly can't believe it's 2022 |
We need a classic game of life example. Why not multi-window? :). One you can draw on!
A multi windowed game of life application. You could use this to learn:
Lots more.
I wrote this very quickly (Sunday afternoon), so there might be mistakes. Only tested on Ubuntu today.