Neop / mudmap2

A mapping tool for text-based games, like text adventures, MUDs and MUSHs
42 stars 12 forks source link

Ignore one-way paths when finding shortest path #56

Closed Sardtok closed 1 year ago

Sardtok commented 1 year ago

Skips one-way exits, so the rooms they lead to are not added to the queue of rooms to visit. This is a partial fix for #46 .

Sardtok commented 1 year ago

The logic here could be changed to canonical NOR form, but that might not be so familiar to those who haven't studied any hardware. I.e. !(a || b || c) is equivalent to !a && !b && !c.

Neop commented 1 year ago

Thanks for the fix! (Also thanks for the hint, I did study hardware but shortly after I created this program).