jhauberg / cards.py

Generate Print-and-Play cards for your board games
MIT License
35 stars 7 forks source link

The ^-pointer should work for any column #142

Open jhauberg opened 7 years ago

jhauberg commented 7 years ago

Currently, it only works for @template. It would be nice if you could use it anywhere.

jhauberg commented 7 years ago

Currently, the way this works is by a completely special case for the @template and @template-back, where the paths are stored for the previously encountered row.

I think an easy solution to improve on this is by instead storing the previously encountered Row reference; this way we would have access to each column, and the logic would be more generalized (even an improvement for the current supported case).