-
Notifications
You must be signed in to change notification settings - Fork 523
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
adding chapter 11 (snake game) #555
Conversation
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.
Great work! Also in line with the tone of the rest of the book. Nicely split as well.
Thank you!
I have just added a couple of formatting improvements.
Could you look at the error in CI?
static TURN: Mutex<RefCell<Turn>> = Mutex::new(RefCell::new(Turn::None)); | ||
``` | ||
|
||
The data is wrapped in a `RefCell` to permit interior mutability and a `cortex_m::interrupt::Mutex` to allow safe access. |
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.
Could you add a link here to the docs of RefCell?
Thank you - happy with your changes of course. CI is failing on I will update the PR when I get a chance (may take a few days) |
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.
Awesome work, thank you so much!
Adding a chapter on building a basic snake game, as discussed in #552.
Closes #552