erickzanardo / pathxp

Like regular expressions but for defining paths in a grid
MIT License
2 stars 0 forks source link

feat: Add support for magnitude per step #10

Open kurtome opened 1 year ago

kurtome commented 1 year ago

Description

Currently if you say "{100R}" that is represented as [Right, Right, Right, ..., Right] in a list 100 elements long in Pathxp.path. This means there is no way to differentiate between "{50R, 50R}" and "{100R}" which means the end user can't decide to (for example) pause for 1 second at each path node, or go a particular speed when traversing between nodes.