scrom / Experiments

a NodeJS text adventure - deliberately coded badly to re-experience the pain of legacy code
http://mvta.herokuapp.com/
2 stars 0 forks source link

add synonyms for locations #498

Open scrom opened 8 years ago

scrom commented 8 years ago

Locations have a displayname that is returned in some cases but a player may as an NPC for a location by a slightly different name, some form of synonym / distance handling is needed to find the "closest" match.

e.g. get all locations with matching synonym. compute a path to each recommend the shortest. (maybe even with explicit directions - depending on affinity.