increpare / PuzzleScript

Open Source HTML5 Puzzle Game Engine
MIT License
903 stars 159 forks source link

allowed to have "x no x" in cell matching pattern lol #640

Closed increpare closed 3 years ago

increpare commented 3 years ago

allowed to have "x no x" in cell matching pattern lol

increpare commented 3 years ago

(could techncially be ok, if generated as a side-effect of rule-expansion - you could do a check and discard rules that have self-contradicting bits as an optimisation maybe? :) )

increpare commented 3 years ago

optimize away rules like [player no player] ->[]

implemented here: https://github.com/increpare/PuzzleScript/commit/3eb47faa3487b110ef0209310c4c6339c8f1f839

however []->[player no player] remains. could output an error if someone types this. otoh you know whatever. If someone mentions it I'll have a look.