-
Notifications
You must be signed in to change notification settings - Fork 21
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
[example] Array example using a grid #74
base: main
Are you sure you want to change the base?
Conversation
I will write test for grid example in the near time |
fn is_neighbor(self: GridTile, other: GridTile) -> bool; | ||
fn tiles_within_range(self: GridTile, range: u32) -> Array<GridTile>; | ||
} | ||
|
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.
can use:
#[generate_trait]
to make code cleaner
@@ -0,0 +1,2 @@ | |||
## Grid map using Array | |||
|
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.
add a brief explanation in the readme
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 start - added some comments. Could you also add some comments within the code explaining the array section.
Co-authored-by: Loaf <90423308+ponderingdemocritus@users.noreply.github.com>
Co-authored-by: Loaf <90423308+ponderingdemocritus@users.noreply.github.com>
#69
Checklist