dominicprice / endplay

A suite of tools for generation and analysis of bridge deals. Read the documentation at https://endplay.readthedocs.io
MIT License
21 stars 5 forks source link

Cards in lin-file is in the wrong order #29

Open ThorvaldAagaard opened 11 months ago

ThorvaldAagaard commented 11 months ago

When dumping a lin file the order of the cards are reversed

md|4S4TH456QAD8JQC69T,S237JH23JD56TKAC4,S589AH89TD37C37JQ,

I think most applications just don't care, but when validating it would be nice to follow the standard.

The last comma should also be removed

I think it would be nice with some test with pbn-> lin -> pbn and lin -> pgn -> lin as we should not lose any information during these transformations. But be aware that most implementations of lin and pbn-files are different, so you should select the files for testing, and not assume it would be working on any file.