-
-
Notifications
You must be signed in to change notification settings - Fork 144
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 lesson 18-practice #930
Comments
This is not a bug. You have 2 weird things in your code.
You did not need to know this to actually complete the exercise but its better to show you.
Instead of this try calling it in a proper manner something like : Second thing you understood wrong is that you're trying to call select units with an array containing simple numbers as each index instead of a Vector2 which holds coordinates. Please revisit some of the chapters prior to Lesson 18 for a better understanding. |
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the bug:
func run():
select_units([1,0])
select_units([5,1])
select_units([4,2])
select_units([0,3])
error: Unit in cell (1,0) not selected
Expected behavior
Since it seems to identify the other cells as selected, it should see that as selected too
Screenshots
Information about your device (please complete the following information):
The text was updated successfully, but these errors were encountered: