Skip to content

Allow intermixing of Moore and vonNeumann neighborhoods #19

@dragoncoder047

Description

@dragoncoder047

...Previously while I was working on the Fusion rule that caused all the bugs and crashes in #18, I ended up with this error:

Parsing...
  Error in @TABLE, line 93:
      # NoTomeAtAll
      ^^^^^^^^^^^^^^^^^^^^^^^^^
  `neighborhood` directive cannot be reassigned

The Moore and von Neumann neighborhoods overlap, so couldn't Nutshell automatically allow Moore in some places and vN in others, and just fill in the corners on all the vN ones with any automatically when it expands it to the Moore neighborhood in the output rule file?

Also, the error message is wrong either way. It should be:

Parsing...
  Error in @TABLE, line 94:
      neighborhood: von Neumann
      ^^^^^^^^^^^^^^^^^^^^^^^^^
  `neighborhood` directive cannot be reassigned

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions