Skip to content

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

@xxuurruuii

Description

@xxuurruuii

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

how to reproduce this bug:
copy the code 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')"

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

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions