CG data structures

This post is here because posts don’t have a proper format for plain text formatting (you know, simple ascii text where you want the columns to align). WordPress’ recent changes have made it harder to find, but the pre-tag is still there – if you work hard enough to find it.

Anyways, here of some records of players which has assigned the same name. The question for my program is how to distinguish between them – without surfing over to . That means I need to present all the player data available – here it is (using my format in the top, and a list parse of ‘s playlist.txt data below):

-------------------------------------------------------------------------------------------
 <CG> id   /    FIDE id    Name                 dob          Natl    Bio  Rating / Games
-------------------------------------------------------------------------------------------

     30590 / $        0  W Arnold              ()                    N       0 / 1
     39963 / $        0  W Arnold              ()                    N       0 / 1

     63217 / $        0  Van Kerkwijk          ()                    N       0 / 1
     73380 / $        0  Van Kerkwijk          ()                    N       0 / 1

     78039 / $        0  G H Phillips          ()                    N       0 / 1
    125736 / $        0  G H Phillips          ()                    N       0 / 1

     28702 / $        0  Ladislav Mikulcik     ()                    N       0 / 1
    116544 / $   301353  Ladislav Mikulcik     (1961.12.15)          N    2245 / 3

     96526 / $   718475  Gergely Toth          (1983.01.13)          N    2231 / 1
    140018 / $   738778  Gergely Toth          (1994.00.00)          N    2241 / 4

     69416 / $   613126  Philippe Glod         (1964.04.06)          Y    2213 / 1
    145270 / $   201642  Philippe Glod         (1984.00.00)          Y    1912 / 1

    109944 / $ 14116731  Alexander Ipatov      (1993.07.16)  TR      Y    2635 / 301
    139664 / $ 24139092  Alexander Ipatov      (1994.00.00)          N    2177 / 2

-----------------------------
CG raw data - nearly
-----------------------------

[  30590,   1, 'M',           '',  '', 'US',   '',        0,    0,    0,    0,    0, 'N', 'W Arnold', 'W Arnold']
[  39963,   1,  '',           '',  '',   '',   '',        0,    0,    0,    0,    0, 'N', 'W Arnold', 'W Arnold']

[  63217,   1, 'M',           '',  '', 'NL',   '',        0,    0,    0,    0,    0, 'N', 'Van Kerkwijk', 'Van Kerkwijk']
[  73380,   1,  '',           '',  '',   '',   '',        0,    0,    0,    0,    0, 'N', 'Van Kerkwijk', 'Van Kerkwijk']

[  78039,   1,  '',           '',  '',   '',   '',        0,    0,    0,    0,    0, 'N', 'G H Phillips', 'G H Phillips']
[ 125736,   1,  '',           '',  '',   '',   '',        0,    0,    0,    0,    0, 'N', 'G H Phillips', 'G H Phillips']

[  28702,   1,  '',          '',  '',    '',  '',         0,    0,    0,    0,    0, 'N', 'L Mikulcik', 'Ladislav Mikulcik']
[ 116544,   3, 'M', '1961.12.15',  '', 'CS',  '',    301353, 2245, 2245,    0,    0, 'N', 'L Mikulcik', 'Ladislav Mikulcik']
 
[  96526,   1, 'M', '1983.01.13',  '', 'HU',  '',    718475, 2231, 2183,    0,    0, 'N', 'G Toth', 'Gergely Toth']
[ 140018,   4, 'M', '1994.00.00',  '', 'HU',  '',    738778, 2241, 2210,    0,    0, 'N', 'G Toth', 'Gergely Toth']

[  69416,   1, 'M', '1964.04.06',  '', 'FR',  '',    613126, 2213, 2159,    0,    0, 'Y', 'P Glod', 'Philippe Glod']
[ 145270,   1, 'M', '1984.00.00',  '', 'BE',  '',    201642, 1912, 1912,    0,    0, 'Y', 'P Glod', 'Philippe Glod']

[ 109944, 301, 'M', '1993.07.16',  '', 'UA', 'TR', 14116731, 2635, 2609, 2610, 2585, 'Y', 'A Ipatov', 'Alexander Ipatov']
[ 139664,   2, 'M', '1994.00.00',  '', 'RU',   '', 24139092, 2177, 2177, 2102, 2097, 'N', 'A Ipatov', 'Alexander Ipatov']

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s