riichinomics / autotable

An online mahjong table
http://autotable.riichi.moe
Other
15 stars 6 forks source link

Flower tiles #21

Open joshk0 opened 3 years ago

joshk0 commented 3 years ago

Moved from pwmarcz/autotable#7

I see that your fork of autotable contains the ability to add and remove tiles from the tile set, such as red fives, via a fairly dynamic mechanism.

Please, if it's possible, include flower and season tiles into the tile set and let them be included via this mechanism. SVG versions of flower and season tiles can be found here on Wikipedia. I believe that to work properly in autotable the tile backs would need to be trimmed off leaving only the front pattern. I've never worked with SVG's before, but if you can give me some tips on what the final product should look like, I can try to make the mods myself.

As for how to notate them in the tileset, since the notation is defined around JP variants there is no prior art for how you might express a flower or season. I suggest 'Z' as opposed to 'z' from 1 through 8. This is useful because the '1' flower represents value for whoever is East, '2' is valuable for South, '3' for West, etc. It doesn't work so well for seasons 5678 (5=E, 6=S, 7=W, 8=N) but that's ok, i don't think a second new letter would be useful in this case.

Let me know what i can do to help, i'm happy to contribute.