zyxw59 / formationbot-rs

FormationBot renders square dance formations as pictures, to aid discussions of calling
MIT License
0 stars 1 forks source link

Bigon/Hex/Apeirogon support #5

Open zyxw59 opened 2 years ago

zyxw59 commented 2 years ago

I think the easiest way to make this work is to assume that the input represents one half of the square (e.g. the north half). Then you just need to apply the appropriate transformations to the dancers.

zyxw59 commented 2 months ago

syntax idea: use delimiters to distinguish this from normal square syntax, and allow a number after the delimited group to indicate how many times to repeat it; for an asymmetric hex formation, multiple groups could be provided

e.g.

[^v^v^]3

would produce a hex in waves

[^v^v][>>/<<][D^>Dv/<]

would produce a hex with a wave in the north third, a box in the southeast third, and a diamond in the southwest third