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

Directional tags in a rule make it directional. #43

Open
ClementSparrow opened this issue Apr 11, 2022 · 0 comments
Open

Directional tags in a rule make it directional. #43

ClementSparrow opened this issue Apr 11, 2022 · 0 comments
Labels
bug Something isn't working expansion any expansion mechanism mappings Anything that concerns mappings syntax/language Concerns the language or its syntax

Comments

@ClementSparrow
Copy link
Owner

ClementSparrow commented Apr 11, 2022

The following file should compile and produce only two rules but it produces 8 rules:

OBJECTS

Background 
darkblue

Player
red

Dot:directions
white
.....
.....
..000
.....
.....
rot:right:>

LEGEND
. = Background

SOUNDS

COLLISIONLAYERS

Background
Player
Dot:directions

RULES
[Player Dot:directions ] -> [ ]
[Player no Dot:directions ] -> [ ]

WINCONDITIONS

LEVELS

........
........
........

The rules produced are:

instructions.
  [30] UP [ player dot:directions ] -> [ ]
+ [30] DOWN [ player dot:directions ] -> [ ]
+ [30] LEFT [ player dot:directions ] -> [ ]
+ [30] RIGHT [ player dot:directions ] -> [ ]
  [31] UP [ player no dot:up no dot:right no dot:down no dot:left ] -> [ ]
+ [31] DOWN [ player no dot:up no dot:right no dot:down no dot:left ] -> [ ]
+ [31] LEFT [ player no dot:up no dot:right no dot:down no dot:left ] -> [ ]
+ [31] RIGHT [ player no dot:up no dot:right no dot:down no dot:left ] -> [ ]
LATE RULES

Instead, it should produce:

Successful compilation, generated 1 instruction.
  [30] DOWN [ player dot:directions ] -> [ ]
  [31] DOWN [ player no dot:up no dot:right no dot:down no dot:left ] -> [ ]
LATE RULES
@ClementSparrow ClementSparrow added the bug Something isn't working label Apr 11, 2022
@ClementSparrow ClementSparrow changed the title expansion of directional tags in a NO expression causes the rule to be treated as directional. Directional tags in an expression causes the rule to be treated as directional. Apr 11, 2022
@ClementSparrow ClementSparrow changed the title Directional tags in an expression causes the rule to be treated as directional. Directional tags in a rule makes it directional. Apr 11, 2022
@ClementSparrow ClementSparrow changed the title Directional tags in a rule makes it directional. Directional tags in a rule make it directional. Apr 11, 2022
@ClementSparrow ClementSparrow added syntax/language Concerns the language or its syntax expansion any expansion mechanism mappings Anything that concerns mappings labels Jul 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working expansion any expansion mechanism mappings Anything that concerns mappings syntax/language Concerns the language or its syntax
Projects
None yet
Development

No branches or pull requests

1 participant