Skip to content

multiple "X no X" cells in one rule can lead to unexpected rule deletion #191

@xxuurruuii

Description

@xxuurruuii

Describe the bug
multiple "X no X" cells in one rule can lead to unexpected rule deletion

Reproduction Steps
copy the example projects below and click run, and we can see it generated 0 instructions
also: duplicate the second rule can lead to "TypeError: Cannot read properties of undefined (reading 'lhs')"

What did you expect would happen?
only the second rule got deleted, not the first rule

OS & Browser version, desktop/mobile
windows, google chrome, desktop

Screenshots, example projects, other relevant issues, etc.

title Simple Block Pushing Game
author David Skinner
homepage www.puzzlescript.net
verbose_logging

========
OBJECTS

Background
lightgreen green
11111
01111
11101
11111
10111

Target
darkblue
.....
.000.
.0.0.
.000.
.....

Wall
brown darkbrown
00010
11111
01000
11111
00010

Player
black orange white blue
.000.
.111.
22222
.333.
.3.3.

Crate
orange
00000
0...0
0...0
0...0
00000

=======
LEGEND

. = Background

= Wall

P = Player

  • = Crate
    @ = Crate and Target
    O = Target

=======
SOUNDS

Crate move 36772507

================
COLLISIONLAYERS

Background
Target
Player
Wall, Crate

======
RULES

[ > Player | Crate ] -> [ > Player | > Crate ]
[ > Player no Player | Player no Player ] -> [ | ]

==============
WINCONDITIONS

all Target on Crate

=======
LEVELS

####..
#.O#..
#..###
#@p..#
#..*.#
#..###
####..

#....#
#.#P.#
#.*@.#
#.O@.#
#....#

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions