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

Refactor Reader and Objects #75

Open
RenatoGeh opened this issue Jan 8, 2017 · 0 comments
Open

Refactor Reader and Objects #75

RenatoGeh opened this issue Jan 8, 2017 · 0 comments
Labels

Comments

@RenatoGeh
Copy link
Member

All objects should take as arguments to their respective constructors four parameters:

i - the i-th column in grid (position).
j - the j-th row in grid (position).
o - the orientation (e.g. north, south, west, east).
tp - the type of this object (e.g. "bucket", "dead", etc.)
args - a table containing type specific arguments.

Reader should pass all these arguments the same way for all objects. Maybe rename all tps the same name as their respective classes, avoiding manually inputting new objects in reader.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant