writerman, on 2014-February-03, 07:27, said:
Just tried to calculate checksums using the above then comparing with the original. The result for the board checksums is always 1 out from the original - ie last bit set in original => not set in mine and vice versa. In other words, the seed for the XOR checksum is 1, not zero. In the case of the main checksum it's just the XOR of the lowest and highest board no.
Also note that the individual board checksums are three digits not two. These digits are the decimal representation of the single byte checksum.
Keith
Thanks to all of you. I've been working on a dealing machine file verify and translate utility. This discussion helped me add Duplimate for Windows *.DLM format to the library. The current version accepts two input files, verifies them to determine whether they represent the same board set, and when there is a third file
and the board sets match reformats the inputs to create an output file in the specified format. Now, the supported formats are as follows:
*.ALL: DEAL305 format ( rw )
*.BRE: Autodealer format ( rw )
*.BRI: Duplimate format ( rw )
*.CSV: Comma Separated Values text format ( rw )
*.DGE: Duplimate format ( rw )
*.DLM: Duplimate for Windows format ( r )
*.DUP: Duplimate format ( rw )
*.HRF: Duplimate Hand Record Format ( rw )
*.HDM: Hand Dealer for Macintosh ( r )
*.PBN: Portable Bridge Notation format ( rw )
*.RBN: Richard's Bridge Notation format ( rw )
Any help with adding *.LIN, *.GIB, or other interesting formats would be appreciated.
The intended objective focuses on dealing machine operations. Given two files for the same event and session, the utility can verify them against one another---potentially helpful if there is some confusion about the correct file to use for dealing the boards. Also of occasional helpfulness, possessed of a dealing machine file in a format alien to one's dealing machine, this utility may provide a reformatted file for the same board set in a form acceptable to the dealing machine.
Thanks,