Thanks! I should have done my research. It looks like my proposal is essentially a flavour of Reversible Algebraic Notation, only with fixed length. I'm wondering if that's really worth the effort.Sopel wrote: ↑Tue Nov 30, 2021 1:44 am I've specified something like this https://github.com/Sopel97/chess_pos_db ... s/Eran.cpp (Extended Reverse Algebraic Notation, which is based on Reverse Algebraic Notation
Optimised Algebraic Notation
Moderators: hgm, Rebel, chrisw
-
- Posts: 176
- Joined: Sun Dec 08, 2019 8:16 pm
- Full name: Dmitry Shechtman
Re: Optimised Algebraic Notation
-
- Posts: 28123
- Joined: Fri Mar 10, 2006 10:06 am
- Location: Amsterdam
- Full name: H G Muller
Re: Optimised Algebraic Notation
It was never used where I live.Sopel wrote: ↑Tue Nov 30, 2021 12:01 pmNow go back 50 years or so when descriptive notation was being used and apply your argument.hgm wrote: ↑Tue Nov 30, 2021 9:24 am Well, you know what they say on the stock exchange: "the market is always right". It doesn't really matter what you think is best. It matters what the majority of people prefer to use. It seems you are hugely outvoted on this. People like to use SAN. Look up the account of a chess match in a newspaper: the moves will be given in SAN. Buy a chess book (I have Seirawan's "Five Crowns" lying before me), and all moves in it will be printed in SAN. View a game on FICS or LiChess: the moves list will be displayed as SAN.
-
- Posts: 307
- Joined: Wed Sep 01, 2021 4:08 pm
- Location: Germany
- Full name: Roland Tomasi
Re: Optimised Algebraic Notation
I think that is the root problem with SAN: the standard doesn't seem to be defined with precision. Everybody is using ones' own interpretation/dialect. Granted, the PGN specification does to some extent clarify how SAN should be used within PGN files, but then again in a real world application you realize that not every PGN file sticks to that specification. Now, one could argue that these files aren't proper PGN files... but does that provide any help when you simply need to read them for some reason?mvanthoor wrote: ↑Tue Nov 30, 2021 8:27 amSAN is a massive mistake. It is much too error prone; not only in parsing it, but also in writing it. for example, something like a7xb8q could be written like this:
- axb8q
- a:b8q
- ab8:q
- ab8q
- ab:q
- abq
I've seen all of them during the years. I'll first have to find out what the default is for PGN.
Well, mistakes/typos may happen with other forms of notation as well (although it's maybe easier to spot them). I used PGN files of grandmaster games for testing my parser (I'd have to look up where I got them from, but it was what looked like a professional source). A lot of them contained outright illegal moves. Upon inspection it turns out that virtually all of these were OCR errors (stuff like 7 instead of 1, a instead of e, etc.). I guess that may happen with any standard. Does not make it less annoying, though.
I agree. PGN (with all the SAN madness) is however so widespread, that you simply cannot evade it. Sadly, it's not the first time that a poorly chosen standard (or even just an accident of history) haunts the entire industry for decades.
-
- Posts: 307
- Joined: Wed Sep 01, 2021 4:08 pm
- Location: Germany
- Full name: Roland Tomasi
Re: Optimised Algebraic Notation
Addendum to my last post (and maybe somewhat back to the topic at hands):
I am not sure if these types of OCR errors are still an issue when new games are archived. I suspect these come from a time when the databases were mostly paper-based and had to be scanned/OCR-processed at some point. Nevertheless, what I would like to propose (in the unlikely event that a new standard emerges and gets adopted) is to incorporate some type of error-detection. Maybe some sort of checksum.
I am not sure if these types of OCR errors are still an issue when new games are archived. I suspect these come from a time when the databases were mostly paper-based and had to be scanned/OCR-processed at some point. Nevertheless, what I would like to propose (in the unlikely event that a new standard emerges and gets adopted) is to incorporate some type of error-detection. Maybe some sort of checksum.
-
- Posts: 28123
- Joined: Fri Mar 10, 2006 10:06 am
- Location: Amsterdam
- Full name: H G Muller
Re: Optimised Algebraic Notation
People won't care about standards. They will simply do what they consider most convenient.
All algebraic notations are one family. It is not that people who use SAN would not be aware that the from-square can also be unambiguously written by its coordinates. The just prefer to indicate it by the piece that is on it.
All algebraic notations are one family. It is not that people who use SAN would not be aware that the from-square can also be unambiguously written by its coordinates. The just prefer to indicate it by the piece that is on it.
-
- Posts: 176
- Joined: Sun Dec 08, 2019 8:16 pm
- Full name: Dmitry Shechtman
Re: Optimised Algebraic Notation
Speaking of standards, is there one for RAN?
Wikipedia only has a trivial example, and Chessprogramming wiki only mentions Smith notation (which doesn't seem to fit the bill).
Wikipedia only has a trivial example, and Chessprogramming wiki only mentions Smith notation (which doesn't seem to fit the bill).
-
- Posts: 1062
- Joined: Tue Apr 28, 2020 10:03 pm
- Full name: Daniel Infuehr
Re: Optimised Algebraic Notation
You know that can be said about everything. Think back 30 years and what people said in 1991 about computer mice. Or in 1995 about the internet.hgm wrote: ↑Tue Nov 30, 2021 9:24 am Well, you know what they say on the stock exchange: "the market is always right". It doesn't really matter what you think is best. It matters what the majority of people prefer to use. It seems you are hugely outvoted on this. People like to use SAN. Look up the account of a chess match in a newspaper: the moves will be given in SAN. Buy a chess book (I have Seirawan's "Five Crowns" lying before me), and all moves in it will be printed in SAN. View a game on FICS or LiChess: the moves list will be displayed as SAN.
And now the majority of all chess is over the internet. So pgn was not invented for the digital age and as is noted here is hard to parse correctly.hgm in 1995 (fake quote to make my point clear) wrote: "It seems that you are hugely outvoted by people not using the internet so its proven that it cannot work"
Worlds-fastest-Bitboard-Chess-Movegenerator
Daniel Inführ - Software Developer
Daniel Inführ - Software Developer
-
- Posts: 28123
- Joined: Fri Mar 10, 2006 10:06 am
- Location: Amsterdam
- Full name: H G Muller
Re: Optimised Algebraic Notation
A totally nonsensical comparison. The internet was somerhing new, which required investment in equipment and services to use. People learn long algebraic notation and SAN at exactly the same moment, though, and are completely free to use whatever they like best.
-
- Posts: 2579
- Joined: Tue Aug 30, 2016 8:19 pm
- Full name: Rasmus Althoff
Re: Optimised Algebraic Notation
People don't care about SAN in PGN, that's complete nonsense. What people care about is that there is a format that can be exported and imported in any chess software, and it just works. Any new "improved" format would break this number one feature. The setting for long or short notation is just a GUI option for the users with no relation to the file content format.
Rasmus Althoff
https://www.ct800.net
https://www.ct800.net
-
- Posts: 307
- Joined: Wed Sep 01, 2021 4:08 pm
- Location: Germany
- Full name: Roland Tomasi
Re: Optimised Algebraic Notation
Indeed, the typical user doesn't care. Whoever tries to implement a PGN parser is forced to care, though.
Yes, that's what I was trying to point out.
Not only for the user, also from a programmers viewpoint it's probably just one branch when parsing a move. Trouble for the user is, that unless the developer of whatever software he's using to import PGN chooses to provide that option he can't read "new" PGN files that use a different move notation. There would have to be some consensus among avtive developers to change most freeware programs to provide the option. Elsewise all complaining about how crap SAN is will not help. I have a hunch that it's not going to happen...