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

Assign 3 variables to 2 values #1

Open
ruicao-github opened this issue Oct 30, 2020 · 0 comments
Open

Assign 3 variables to 2 values #1

ruicao-github opened this issue Oct 30, 2020 · 0 comments

Comments

@ruicao-github
Copy link

ruicao-github commented Oct 30, 2020

Dear David,
thank you for the excellent book, as a beginner, I learned a lot.

In the dart code from chapter 8 flying pigs (Chapter_08/FlyingPigs/web/flyingpigs.dart), on line 15, int pigX, pigY, score = 0, speed;, how is it possible to assign 3 variables to 2 values? Is speed a tuple? I have not found the variable speed being initialized anywhere in the code. I am confused.
I attach the original code below for your reference.
Best,
Rui
carbon (1)

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

1 participant