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

Add feature for relative paths #32

Open
ljvmiranda921 opened this issue Apr 3, 2020 · 0 comments
Open

Add feature for relative paths #32

ljvmiranda921 opened this issue Apr 3, 2020 · 0 comments
Labels
documentation Update package documentation enhancement New feature or request

Comments

@ljvmiranda921
Copy link
Owner

ljvmiranda921 commented Apr 3, 2020

Not yet sure what's the best API for this, but ideally we should add the ability to add lifeforms relative to one another, instead of adding their coordinates explicitly. Might need to think of adding attributes such as anchor and offset (lol, can you count how many times I used the word "add"?)

board.add(my_lifeform, loc=(0,0))
board.add(another_lifeform, relative_to=my_lifeform, loc="below", offset=(0,1))
@ljvmiranda921 ljvmiranda921 added documentation Update package documentation enhancement New feature or request labels Apr 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Update package documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant